[ic] Running perl code as part of an order route...

Kevin Walsh interchange-users@interchange.redhat.com
Sun Feb 10 19:33:00 2002


> 
> I did this, but I keep getting this error message:
> 
> <path to>/process.html Safe: Illegal division by zero at (eval 234)
> line 1.
> 
> From further reading through the doc, it appears that this error is
> related to the limitations imposed by the Safe module, and the way to
> work around this is to create a Global subroutine.
> 
> So I created one.
> 
> But I am still getting the same error message! Does anyone know how to
> execute some perl code without being restricted by Safe as part of an
> order route?
> 
It sounds to me like you have an actual division by zero error,
which will be illegal whatever you do, and nothing to do with Safe.
Perhaps its a syntax error in the code you are using to create a
path to your files.

I suggest you either fill your code with debug messages and keep
running orders, or extract your code into a small Perl script and
run it manually until you track down the fault.  Perhaps you
could put some debug messages into your code, to start with, so
you can note exactly what your routine is given to work with.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/