in reply to Re^2: How to use getopt and $#argv together?
in thread How to use getopt and $#argv together?
No, specifying the options doesn't change anything.
$ perl -MGetopt::Std -E' getopt("fdrv",\%opts); say 1+$#ARGV; say "@ARGV"; ' -- -f a b c d 3 b c d
The only thing you showed is that removing the arguments produces an empty @ARGV.
|
|---|