With Getopt::Long 2.25, I get the results I expect.
The argument after -lib (the string 1.0) is assigned to $opt_lib (i.e. $opt_lib = "1.0";).
The argument after -cell (the string -a) is assigned to $opt_cell (i.e. $opt_cell = "-a";).
Unrecognized parameter -f remains in @ARGV (i.e. @ARGV = ("-f");).
exit didn't get executed. There was no error except the unrecognized parameter -f, but pass_through allows that.
What results are you expecting?
In reply to Re: Issues w/ getOptions parsing options with pass_through enabled
by ikegami
in thread Issues w/ getOptions parsing options with pass_through enabled
by Brawny1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |