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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2017-02-23 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (350 votes). Check out past polls.