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


in reply to Re: $ARGV dilemma
in thread $ARGV dilemma

  unless $ARGV[2] works until someone passes a zero. You could amend it to   unless defined $ARGV[2] though   if 3 > @ARGV reads better, at least in my opinion.