in reply to Push array into array of arrays
With push (@myArrofArray, \@myArray); you are adding a reference to @myArray to @myArrofArray. Printing Array references looks like ARRAY(0x7c8f60), but the number in parentheses will be different every time.
If you want to unfold the individual elements of @myArray into @myArrofArray, use:
push (@myArrofArray, @myArray);If you want to print individual elements of @a, unfold the elements before pushing them:
push(@a,@{pop(@myArrofArray)});
|
|---|