Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Use Getopt::Long even if you don't think you need to

by mrfirmware (Initiate)
on May 22, 2008 at 13:18 UTC ( #687953=note: print w/ replies, xml ) Need Help??


in reply to Use Getopt::Long even if you don't think you need to

You're right, Getopt::Long is great. However, I *do* use it all the time. I have a parse_cmdline_opt() sub that I use in all my Perl programs that takes ref to hash. To tailor the parser to each new program, I just change the hash keys for the options I wish to support. Everyone should use Getopt::Long, even for that one arg.


Comment on Re: Use Getopt::Long even if you don't think you need to

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (15)
As of 2015-07-06 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls