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