|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Is there a more functional regex syntax?by tobyink (Prior) |
| on Sep 18, 2012 at 15:54 UTC ( #994305=note: print w/ replies, xml ) | Need Help?? |
|
I think this is the prettiest I could make it...
... it's arguably less readable though.
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
|
|
||||||||||||||||||||||||