in reply to reval in Safe.pm and objects
so the code in the compartment can't see any other namespaces so it doesn't know that the Person namespace exists. Tryreval (STRING) This evaluates STRING as perl code inside the compartment. The code can only see the compartment's namespace (as returned by the root method). The compartment's root package appears to be the main:: package to the code inside the compartment.
$string = <<'EOM'; use Person; $data = { 'person' => bless( [ 42 ], 'Person' ) }; EOM
--
flounder
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reval in Safe.pm and objects
by Aristotle (Chancellor) on Sep 07, 2002 at 05:05 UTC |