push @myArrayOfArrays, @myOtherArray;
means
push @myArrayOfArrays, $myOtherArray[0], $myOtherArray[1], ..., $myOtherArray[n];
[ @myOtherArray ]
creates an array, copies @myOtherArray into it, an returns a reference to the new array, so
push @myArrayOfArrays, [ @myOtherArray ];
appends an array reference to @myArrayOfArrays instead of simply appending the contents of @myOtherArray.
In reply to Re^2: Array of arrays problem
by ikegami
in thread Array of arrays problem
by sunwolf78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |