in reply to Re: $ARGV dilemma
in thread $ARGV dilemma
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