in reply to Re: stack array to array of arrays
in thread stack array to array of arrays
also removes "" and 0 from the list. Should probably begrep{$_} .......
Also - why usegrep{defined $_} .....
when you could use@array -1
I like the approach.... Perhaps$#array
Is a little cleaner?map{[ grep {defined} @array[$_*$len..$_*$len+$len-1] ]} 0..$#array/$len
|
|---|