according to the GetOpt cpan page:
"The command line options are taken from array @ARGV. Upon completion of
GetOptions, @ARGV will contain the rest (i.e. the non-options) of the
command line."
So your @ARGV should be empty
Comment on Re: using getopts::long and testing for command line options