in reply to Re: stack array to array of arrays
in thread stack array to array of arrays

the
grep{$_} .......
also removes "" and 0 from the list. Should probably be
grep{defined $_} .....
Also - why use
@array -1
when you could use
$#array
I like the approach.... Perhaps
map{[ grep {defined} @array[$_*$len..$_*$len+$len-1] ]} 0..$#array/$len
Is a little cleaner?