http://qs321.pair.com?node_id=83568


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.