Node:Functions, Next:, Previous:It Slices!, Up:Manipulating Arrays and Lists


Perl also provides quite a few functions that operate on arrays. As you learn more and more Perl, you will see lots of interesting functions that work with arrays.

Now, we'll discuss a few of these functions that work on arrays: push, pop, shift, and unshift.

The names shift and unshift are an artifact of the Unix shells that used them to "shift around" incoming arguments.