[Philadelphia-pm] GetOpt::Long::Descriptive or GetOpt::Simple?

Chris Nehren c.nehren/phl at shadowcat.co.uk
Wed May 11 16:58:16 PDT 2011


On May 11, 2011, at 19:01 , Mark Gardner wrote:

> On Wed, May 11, 2011 at 5:21 PM, Randall A Sindlinger
> <rsindlin+pm at seas.upenn.edu> wrote:
>> I'd like to embed documentation into the options as I define them, similar to
>> the OptionParser in Python's optparse module.
> 
> I've also had good luck with Getopt::Euclid, which parses out options
> processing out of the POD-formatted documentation for each option.

Euclid is dangerous Damianware (read: Damian abandonware) fueled by brittle crack and voodoo under the hood. Take a look at its innards and see if you still want to use it. Getopt::Simple apparently does bad things with soft references and doesn't use warnings: not things I feel comfortable with in a module so critical to my app development. By contrast, Getopt::Long::Descriptive is a confound/rjbs module, and having worked extensively with App::Cmd I can say that it's solid, mature code which can bend to pretty much whatever you want.

Take a look at http://www.shadowcat.co.uk/blog/matt-s-trout/choosing-a-library/ for some good suggestions on how to go about choosing which CPAN library to use.

-- 
Thanks and best regards,
Chris Nehren



More information about the Philadelphia-pm mailing list