in reply to how to seperate array after a certain number of elements?
perl -e '@a=1..100;while(@a){push@b,[@a[0..4]];@a=@a[5..$#a];}' [download]