$#ARGV is the index of the last argument; @ARGV in scalar context is how many arguments.</small-but-crucial-distinction>
In reply to Re^2: ARGV Usage by Fletch in thread ARGV Usage by pp