Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: hash deref confusion: Intermediate Perlby tobyink (Canon) |
on Jul 30, 2012 at 07:03 UTC ( [id://984370]=note: print w/replies, xml ) | Need Help?? |
I wouldn't really say it's a quirk. You're assigning a list of values to a list of hash slots, so the @ sigil is quite appropriate.
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
|
|