in reply to Re: ARGV Usage
in thread ARGV Usage

$#ARGV is the index of the last argument; @ARGV in scalar context is how many arguments.</small-but-crucial-distinction>