in reply to unshift with two-dimensional arrays

To be pedantic, Perl doesn't have multi-dimensional arrays; it has arrays where the elements can be references to other arrays (or hashes or any other data structure), so pop and unshift will remove an array element, which would happen to be a reference.

  • Comment on Re: unshift with two-dimensional arrays

Replies are listed 'Best First'.
Re^2: unshift with two-dimensional arrays
by erroneousBollock (Curate) on Oct 26, 2007 at 18:47 UTC
    so pop and unshift will remove an array element
    I'm quite sure you meant to say pop and shift.

    -David