XP is just a number | |
PerlMonks |
Re^3: Temp variable performace vs Inline behaviorby tobyink (Canon) |
on Jun 27, 2012 at 16:44 UTC ( [id://978716]=note: print w/replies, xml ) | Need Help?? |
You could use the same technique but clobber a temporary array instead...
Or you could use map:
If parse_node was written to return the empty list in cases of failure (rather than returning the scalar undef), then it would just be:
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
|
|