jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
myPerlProg.pl -number -10
or
myPerlProg.pl -number "-10"
$p = new Getopt::Long::Parser ;
$p->configure('pass_through') ;
$getoptret = $p->getoptions(
'number:s' =>\$num,
.......) ;
If I remove the line with configure I get a message that 10 is an unknown option!
All suggestions are welcome !!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getOptions() parse problem
by gargle (Chaplain) on Sep 13, 2005 at 09:08 UTC | |
by jeanluca (Deacon) on Sep 13, 2005 at 09:25 UTC | |
by gargle (Chaplain) on Sep 13, 2005 at 09:32 UTC | |
by jeanluca (Deacon) on Sep 13, 2005 at 10:04 UTC | |
by gargle (Chaplain) on Sep 13, 2005 at 10:15 UTC |