If you look at @ARGV after the GetOptions call, it should contain the argument 1.
As the AM said, how does anyone know that the 1 is a mistaken argument? It looks like a file name to me (and to GetOptions)... what happens if you say -h 1 -cpu 1? It should complain.
In reply to Re: Re: Getopt::Long return value
by bikeNomad
in thread Getopt::Long return value
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |