You could add new items to the end of an array by simply storing them as elements with new, larger indices. But real Perl programmers don't use indices.**Of course, we're joking. But there's a kernel of truth in this joke.
Learning Perl 5th, p. 45
Is the Llama infecting me with fleas? I feel comfortable manipulating the right side of an array with pop and push, but messing around with the left side of an array using shift and unshift sets off alarm bells.
In reply to Re^2: shift v. indexing into an array
by 7stud
in thread shift v. indexing into an array
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |