http://www.perlmonks.org?node_id=1092802


in reply to My very confusing questions

if no array is given then it uses the default @_
Inside a subroutine, shift and pop operate on @_, but in the main body of a program, they operate on @ARGV, which is what you generally want.

Update: Removed unshift and push as they are different. My mistake.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ