Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: allowing Data::Dumper within safe.pm

by gideondsouza (Pilgrim)
on Feb 12, 2013 at 09:34 UTC ( [id://1018326]=note: print w/replies, xml ) Need Help??


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

Ah! I've tried entereval and leaveeval and it still gives me the exact same message! :(

How should I use share_from, I don't quite understand what it does!

  • Comment on Re^2: allowing Data::Dumper within safe.pm

Replies are listed 'Best First'.
Re^3: allowing Data::Dumper within safe.pm
by Anonymous Monk on Feb 12, 2013 at 09:44 UTC
Re^3: allowing Data::Dumper within safe.pm
by 7stud (Deacon) on Feb 12, 2013 at 17:24 UTC

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1018326]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-26 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found