in reply to Re: Re: Checking for data entry
in thread Checking for data entry

You could just evaluate the @ARGV array in scalar context and compare the result to the number of parameters you are expecting:

@ARGV == $numExpected or die "Usage: ...\n";

Note the use of lower priority "or" and not "||"