There's more than one way to do things | |
PerlMonks |
Re^2: variable declaration questionby tobyink (Canon) |
on Jan 18, 2013 at 21:19 UTC ( [id://1014133]=note: print w/replies, xml ) | Need Help?? |
I updated. It was an afterthought as it didn't seem relevant to the question. (The question included semicolons after the declaration, so the variable is not being initialized.)
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
|
|