Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: safe and $self

by djantzen (Priest)
on Nov 27, 2002 at 02:09 UTC ( #215993=note: print w/replies, xml ) Need Help??


in reply to Re: Re: safe and $self
in thread safe and $self

So I take it $self->{code} contains a reference to an instance of Safe. Again, if $test is declared using my, it is a lexical variable and hence cannot be shared with the code inside of the compartment. See these nodes for more on dynamic versus lexical variables: What's the difference between dynamic and lexical (static) scoping? Between local() and my()? and Lexical vs. Package Variables (With a little local thrown in).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2021-01-17 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?