|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Smart matching for argument constraintsby tobyink (Canon) |
| on Sep 04, 2012 at 06:53 UTC ( [id://991557]=note: print w/replies, xml ) | Need Help?? |
|
Personally I'd make the intent a little more obvious:
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
|
|
||||||||||||||||||||||||||||||