in reply to Re^2: element of an array of arrays
in thread element of an array of arrays

So when I push arrays onto an empty array, that doesn't create an array of arrays ?

an array of arrays is an array of arrayrefs

When you push @arra, @array you're pushing a list onto @arra

push @arra, \@array; ## pushing arrayreference, array of arrays achieved

Replies are listed 'Best First'.
Re^4: element of an array of arrays
by Anonymous Monk on Jun 17, 2013 at 03:11 UTC
    perldoc -f push
    push ARRAY,LIST
    push EXPR,LIST
    Treats ARRAY as a stack by appending the values of LIST to the end of ARRAY. The length of ARRAY increases by the length of LIST.