in reply to 2 dimensional array question

Arrays elements and hash values can only be scalars, not hashes or arrays. When something is called an array of arrays or a two-dimensional array, this is short for array of references to arrays. This means they are assigned like:
$arr[0] = [ 1, 2, 3 ];
To copy the referred to array, you'd do
@anotherarray = @{ $arr[1] };

Replies are listed 'Best First'.
Re^2: 2 dimensional array question
by redss (Monk) on Sep 05, 2005 at 14:51 UTC
    ah, thats what I was doing wrong... thanks!