|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: A curious case of of my()by kilocoder (Novice) |
| on Apr 05, 2011 at 16:42 UTC ( #897553=note: print w/ replies, xml ) | Need Help?? |
|
$href is empty, since it is not passed into foo.
hence @array ends up being a package variable and not a lexical variable. This gives contents : 1 contents : 1 2 However, commenting out the unused href code and declaring array as a lexical like: gives
contents : 1
I hope for nothing. I fear nothing. I am free.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||