![]() |
|
No such thing as a small change | |
PerlMonks |
Re: Re: Re: safe and $selfby djantzen (Priest) |
on Nov 27, 2002 at 02:09 UTC ( #215993=note: print w/replies, xml ) | Need Help?? |
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).
In Section
Seekers of Perl Wisdom
|
|