Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: reduce like iteratorsby ELISHEVA (Prior) |
on Jan 03, 2011 at 18:27 UTC ( [id://880229]=note: print w/replies, xml ) | Need Help?? |
This is fairly easy to implement and wrap in a sub, even with the undefs. Once the sub is written you are back to having a one-liner. What would you like that this wouldn't do?
Or if you want to play golf (though others I'm sure can do better)
Update: added golf Update:: fixed mistake - undefs were strings.
In Section
Seekers of Perl Wisdom
|
|