I would like to add some arrays to an existing array so that I end up with an array of arrays. I have tried push, but this just adds the elements of the sub-array to the master array. I would like the value of the elements in the master array to be the sub-arrays themselves.
I have also tried:
$masterarray[0]=@subarray0; $masterarray[1]=@subarray1;
etc. , but this just assigns the first element of the subarray, instead of the whole subarray, to the element of the master array.
Help!
TIA,
C
In reply to creating arrays of arrays by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |