|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: reducing the number of linesby tobyink (Prior) |
| on Jan 11, 2013 at 17:06 UTC ( #1012923=note: print w/ replies, xml ) | Need Help?? |
|
Without any test data, it's hard to tell it this runs the same as your original, but...
Update #1: Thanks choroba, colons fixed. Update #2: Thanks choroba again for the test script template; minor adjustments, works now.
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
|
|
||||||||||||||||||||||