in reply to Re: shift or die unless
in thread shift or die unless

If shift is called outside of a sub, then @ARGV is the shifted list or, put another way, shift only acts on @_ if either shift called within a sub or @_ is explicitly supplied as an argument e.g. shift @_ (see shift).

Update:

Added extra circumstance under which @_ is acted on

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^3: shift or die unless
by jettero (Monsignor) on Dec 03, 2008 at 14:21 UTC
    I did not know that. I'm shocked actually. Here I've been naming @ARGV all this time ... Huh.

    -Paul