Interchange Developer Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] How can I use POSIX functions in [perl] tags?



Hi,
	I need to use the ceil() function from POSIX package, eg:

[perl]
	use POSIX;
	my $realvalue = ....
	return ceil($realvalue);
[/perl]

but Safe.pm won't let me.
I've tried setting SafeUntrap, but that doesn't work either, eg:

SafeUntrap ceil;
or
SafeUntrap POSIX::ceil; 
-- i'm new to perl - not sure how to specify function namespace, is this 
correct?

Can anyone help?

Cheers
-- 
Mark Gibson <gibsonm@cromwell-tools.co.uk>
Web Developer
Cromwell Group Holdings Ltd



Search for: Sort by: