in reply to 2D arrays

From perldsc:
The most important thing to understand about all data structures in Perl--including multidimensional arrays--is that even though they might appear otherwise, Perl @ARRAY s and %HASH es are all internally one-dimensional. They can hold only scalar values (meaning a string, number, or a reference). They cannot directly contain other arrays or hashes, but instead contain references to other arrays or hashes.

Replies are listed 'Best First'.
Re^2: 2D arrays
by Anonymous Monk on Jul 03, 2012 at 12:04 UTC

    see this is the part i was not getting i didnt realize that the parent array only held the references of the sub arrays, not the whole array its self