Thanks for both your help.
I have now got it working aside of one issue.
our ( $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,
);
If I include both upper and lower case options L and P I end up getting the error message
'Duplicate specification "L" for option "l"'
Is there a way to parse both upper and lower case characters for the same letter?
Appreciate your time and help.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link or
or How to display code and escape characters
are good places to start.