in reply to Re: getopts and -?
in thread getopts and -?
I have now got it working aside of one issue.
If I include both upper and lower case options L and P I end up getting the error messageour ( $opt_d,$opt_h,$opt_l,$opt_L,$opt_i,$opt_o,$opt_P,$opt_p,$opt_q,$ +opt_r,$opt_v,$opt_c,$opt_z ); # 'L' =>\$opt_L, # 'p' =>\$opt_p, GetOptions ( 'd' =>\$opt_d, 'h' =>\$opt_h, 'l' =>\$opt_l, 'i' =>\$opt_i, 'o:s' =>\$opt_o, 'P:s' =>\$opt_P, 'q' =>\$opt_q, 'r' =>\$opt_r, 'v:s' =>\$opt_v, 'c' =>\$opt_c, 'help|?!' =>\$opt_z, );
Is there a way to parse both upper and lower case characters for the same letter?
Appreciate your time and help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: getopts and -?
by Anonymous Monk on May 10, 2011 at 02:52 UTC | |
by viffer (Beadle) on May 10, 2011 at 02:57 UTC | |
|
Re^3: getopts and -?
by viffer (Beadle) on May 10, 2011 at 02:43 UTC | |
by viffer (Beadle) on May 10, 2011 at 02:49 UTC | |
by viffer (Beadle) on May 10, 2011 at 02:54 UTC |