in reply to Supplying a value for an undefined variable

Take a look at Safe. While you wouldn't be using it for its protection (you can leave all opcodes enabled, for example), it has a nice "top-level namespace" management interface. Your package variables can be established into the appropriate compartment, and then the code can also be evaluated there. That should do well.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Supplying a value for an undefined variable

Replies are listed 'Best First'.
Re: •Re: Supplying a value for an undefined variable
by traveler (Parson) on Jan 16, 2003 at 00:03 UTC
    merlyn, this looks as though it will fit the bill directly. I need to play with namespaces and sharing a bit, but I think this will make things farily simple. Thanks!

    --traveler