>>I found nothing in the perldoc for Getopt::Std that allows the getopts
function to ignore case in its arguments. Is there >>something hidden
that will make getopts insensitive to case? Or is there perhaps a
case-ignoring alternative to this function?
I have always used Getopt::Long.
Case and abbreviations
Without additional configuration, GetOptions() will ignore the case of
option names, and allow the options to be abbreviated to uniqueness.
GetOptions ('length|height=f' => \$length, "head" => \$head);
This call will allow --l and --L for the length option, but requires a
least --hea and --hei for the head and height options.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs