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
In reply to Re^2: stack array to array of arrays
by spandox
in thread stack array to array of arrays
by spandox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |