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.
In reply to Re^3: How to use getopt and $#argv together?
by ikegami
in thread How to use getopt and $#argv together?
by iphone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |