Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^3: allowing Data::Dumper within

by 7stud (Deacon)
on Feb 12, 2013 at 17:24 UTC ( #1018418=note: print w/replies, xml ) Need Help??

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

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.

  • Comment on Re^3: allowing Data::Dumper within

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018418]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-03-19 02:17 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (231 votes). Check out past polls.