Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: getopts and -?

by viffer (Beadle)
on May 10, 2011 at 02:43 UTC ( #903894=note: print w/replies, xml ) Need Help??


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

Oops..posted my version prior to reading your responses (honest i had got there off my own accord!) but like your versions, you both have "L & l" and "P & p" which getoptions doesn't seem to like, thinking they are duplicates.

Replies are listed 'Best First'.
Re^4: getopts and -?
by viffer (Beadle) on May 10, 2011 at 02:49 UTC
    Case and abbreviations

    Without additional configuration, GetOptions() will ignore the case of option names, and allow the options to be abbreviated to uniqueness.

    Just wondering if anyone knows what "additional configuration" is required?

      use Getopt::Long qw(:config no_ignore_case);

      I'll get my coat!

      Thanks for your help :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://903894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2022-05-23 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?