Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Idiom to return 0 or random number of array elementsby tobyink (Canon) |
on Dec 07, 2012 at 12:29 UTC ( [id://1007728]=note: print w/replies, xml ) | Need Help?? |
With $hash{...} a scalar context is imposed on the key. With a slice like @hash{...} list context is imposed on the key.
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
|
|