Help for this page
my @tmp = ( \@arr1, \@arr2, \@arr3 );
my @all; foreach my $x (0 .. $#tmp){ ... # or do: my @all = ( \@arr1, \@arr2, \@arr3 ); and then in-place swap (i,j) with (j,i) .. but this will modify the o +riginal @arrX arrays.