Just for fun
perl -MData::Dumper -lE "@r=(1..40);$s=5;$n[($i-$i%$s)/$s][$i++%$s]=$r[$i]for@r;say Dumper\@nCheers,
R.
In reply to Re: stack array to array of arrays
by Random_Walk
in thread stack array to array of arrays
by spandox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |