Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
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.

In reply to Re^2: getopts and -? by viffer
in thread getopts and -? by viffer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • 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.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2022-06-24 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (80 votes). Check out past polls.

    Notices?