in reply to Array Issues

This following will make an array of new arrays for you; I couldn't figure out how to get them into separate arrays, but this is close to what you want.

The two lines after the foreach loop are to put the last few elements of the original array into its own subarray.

my @new_arrays; my $subarray_size = 15; my $array_number = int ( scalar @array / $subarray_size ); foreach ( 0..$array_number-1 ) { my @indices = $_*$subarray_size .. ($_+1)*$subarray_size; push @new_arrays, [ @array[@indices] ]; } my @indices = $array_number * $subarray_size + 1 .. scalar @array - 1; push @new_arrays, [ @array[@indices] ];