![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: $ARGV dilemmaby wog (Curate) |
on May 27, 2001 at 07:41 UTC ( #83568=note: print w/replies, xml ) | Need Help?? |
That won't always work.
What if @ARGV = ("0","0","0"). Then $ARGV[2] is false and you get an error despite having three arguments. You probably like something like unless @ARGV == 3.
In Section
Seekers of Perl Wisdom
|
|