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?



> 	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?

Why not write your perl into a global usertag?

Jonathan
Webmaint.





Search for: Sort by: