in reply to
stack array to array of arrays
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\@n
Cheers,
R.
Pereant, qui ante nos nostra dixerunt!
Comment on
Re: stack array to array of arrays
Download
Code
In Section
Seekers of Perl Wisdom