Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Making little array babiesby nmcfarl (Pilgrim) |
on Apr 12, 2004 at 11:18 UTC ( [id://344353]=note: print w/replies, xml ) | Need Help?? |
I personally like davido's solution the best, if you can live with the undef items at the end. However I would change the push, in the case where the baby arrays are small to :
It's just more explicit. The guy that comes after you won't have to think about what is going on here, it's obvious. Of course if the actual baby arrays are large, or thier length changes programatically, stick with his original code.
In Section
Seekers of Perl Wisdom
|
|