I have an application that lets users load their own modules into it.
Following is the code I use to run it under Safe.pm:

$result = $safe->reval(require "$file.pm", $obj = $mod->new,
$obj->$command);

Problem is if there is a compilation or runtime error, I cant' figure out
how to catch it so I can log it or print the error to the screen.  I can't
wrap it in an eval because for some reasons I don't completely understand it
masks the opcodes that safe is trying to restrict access to.

Chris


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to