in reply to Safe question
You are trying to eval code that looks like: Your::Package=HASH(0xdeadbeef)->init which certainly won't work. The first case works since $package just contains a string so the resulting code is: Your::Package->new You can't simply stringify an object and still have an object. And a package name is one of the very few things that you can simply stringify and get something that works as Perl source code.
You could try just switching to single quotes, but I suspect that the sandbox won't have access to your lexical variables. But I don't know details about Safe, so I can't be much help here.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Safe question
by djberg96 (Acolyte) on Mar 22, 2002 at 18:50 UTC | |
by tye (Sage) on Mar 22, 2002 at 21:49 UTC |