Posted on 2007-04-19 17:53:00-07 by rhumbliner
Getopt::Std
I'd like to suggest a modification to Getopt::Std. Instead of returning a value of 1 for options that don't require an argument, I'd like to return a value indicating how many times the option was invoked. Thus an option -vvv would set $opt_v to 3 instead of 1. Existing code would still operate correctly unless someone checked for $opt_v == 1 instead of merely testing $opt_v as true.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.