http://www.perlmonks.org?node_id=1018418


in reply to Re^2: allowing Data::Dumper within safe.pm
in thread allowing Data::Dumper within safe.pm

share() allows you to specify which global variables in your program that you want your compartment to be able to see. However, you can only specify simple names, like '$x', i.e. names from the current namespace.

share_from() allows you to specify more complex variable names, i.e. variables from a different namespace, e.g. package X::Y::Z.

However, I've not succeeded in getting either to work. If you do, please post an example.