Do you know where your variables are? | |
PerlMonks |
Re: Why are "push", "pop", "shift" and "unshift" so named?by ambrus (Abbot) |
on May 02, 2007 at 14:06 UTC ( [id://613164]=note: print w/replies, xml ) | Need Help?? |
Shift is from the builtin command of same name in unix shells. It shifted a command-line argument from the beginning, so that if you used it in a loop, you could loop through command-line arguments in normal order. Even the DOS command.com has copied that command with the same name. Update: I see jbert has already said this in his reply.
In Section
Seekers of Perl Wisdom
|
|