in reply to Push array into array of arrays

For your first question,

I tried to use perl debugger, x Dumper \@myArrofArray

You must be doing something wrong, Dumper will print all the arrays inside your ArrofArray, one after the other.

btw, if it's the name of the array (@myArray) you are expecting to see, you will see none, only its contents.

use Data::Dumper; my @myArray = (1,2,3); my @myArrofArray = (); push (@myArrofArray, \@myArray); print Dumper(\@myArrofArray);
$VAR1 = [ [ 1, 2, 3 ] ];