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
In reply to Re: reval in Safe.pm and objects
by flounder99
in thread reval in Safe.pm and objects
by bjelli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |