We don't bite newbies here... much | |
PerlMonks |
Re: my and local variable significance in a particular caseby tobyink (Canon) |
on Apr 24, 2012 at 09:31 UTC ( [id://966768]=note: print w/replies, xml ) | Need Help?? |
The above prints lower-case "x" but upper-case "Y", which illustrates that even without strictures, there's a difference between local and my.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|