![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: Fun with Closuresby dada (Chaplain) |
on Mar 26, 2003 at 08:11 UTC ( #245881=note: print w/replies, xml ) | Need Help?? |
Schemer wrote:
I have to disagree with this one. you're not referring to "self" (in OO terms), but merely to the (lexical, in this case) variable $object. consider this:
the output of this snippet is: which shows that $copy is still an "object", but the second call to get-self returns the current value of $object (which is not an "object" anymore).
cheers, King of Laziness, Wizard of Impatience, Lord of Hubris
In Section
Meditations
|
|