|Perl Monk, Perl Meditation|
nested Safe->reval and method from custom Moduleby jeremyh (Beadle)
|on Sep 15, 2004 at 17:11 UTC||Need Help??|
jeremyh has asked for the
wisdom of the Perl Monks concerning the following question:
I'm using Safe->reval to check if a generated perl expression is true.
I want to allow that perl expression to use a method from a custom perl module.
This method also uses Safe->reval (in a new compartment).
I can't get the nested reval to work (it works fine if called directly).
Here is the code:
The method in the custom module WOU_Util
And here's some test code that calls the method:
The error is:
Use of uninitialized value in null operation at /usr/lib/perl5/5.6.1/i386-linux/Safe.pm line 222.
(in cleanup) Undefined subroutine &Safe::Root0:: called at /usr/lib/perl5/5.6.1/i386-linux/Safe.pm line 222.