George Petri wrote:
> However, if I use "shift @ARGV", I DO get the command line arguments. If the
> shift function really does use @_ as its default argument, then why did shift
> in the example code, use @ARGV as default? Does @_ really get populated
> "with all of the parameters passed in through the command line"?
>
The array @ARGV contains the command line
arguments intended for the script.
Within a subroutine the array @_ contains the
parameters passed to that subroutine.
[from perlvar manpage]
The default argument for shift is @_ when used inside subroutines
and @ARGV when used outside subroutines
[for more details see perlfunc]
Kiki
--
Every little picofarad has a nanohenry all its own.
-- Don Vonada