P is for Practical | |
PerlMonks |
Re: Making little array babiesby davido (Cardinal) |
on Apr 12, 2004 at 04:58 UTC ( [id://344329]=note: print w/replies, xml ) | Need Help?? |
Here's one (untested) way...
An artifact of this method is that if your initial array has a number of elements not evenly divisible by three you'll get one or two final elements that equate to undef in the last element in @lol.
Dave
In Section
Seekers of Perl Wisdom
|
|