http://www.perlmonks.org?node_id=903894


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 :)