good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Re: Autovivification and soft refsby thelenm (Vicar) |
on Jan 22, 2004 at 05:03 UTC ( [id://323091]=note: print w/replies, xml ) | Need Help?? |
Now that's interesting. Your post inspired me to dig a little deeper... it looks like the autovivification is still happening, but not on the lexical %stopper. Instead the global %::stopper is affected. Which makes sense, I suppose, because %::stopper is what was being affected in Abigail's original snippet, and with no lexical on scope, %stopper (i.e. the symbolic reference) was really referring to %::stopper. Very interesting, I certainly learned something. Thanks for pointing that out!
-- Mike --
In Section
Meditations
|
|