$parts[$n-$_] = [splice @A, 0, (@A/$_)+(@A%$_&&1)] for reverse 1..$n;
In reply to Re^2: breaking an array into nearly equal parts
by nicoaimetti
in thread breaking an array into nearly equal parts
by santonegro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |