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

Mark Gibson interchange-users@icdevgroup.org
Fri Nov 22 08:47:00 2002


On Friday 22 Nov 2002 1:02 pm, Jonathan Clark wrote:
> > 	I need to use the ceil() function from POSIX package, eg:
> >
> > [perl]
> > 	use POSIX;
> > 	my $realvalue = ....
> > 	return ceil($realvalue);
> > [/perl]
>
> Why not write your perl into a global usertag?

Thats a bit overkill just to use one not-really-unsafe function.

Alternatively, is there a way of turning off Safe.pm completely,
as I am the administrator of Interchange and the only catalogue
developer - or would this open up security holes that could be
exploited?

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