The shift without an argument defaults to @_.
except in main scope (outside a sub) where shift operates on @ARGV by default. Consider:
perl -e "print shift" wibble
Prints:
wibble
In reply to Re^2: Using 'Shift' in subroutine argument
by GrandFather
in thread Using 'Shift' in subroutine argument
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |