metaperl has asked for the wisdom of the Perl Monks concerning the following question:

xdg,

Thanks for writing Getopt::Lucid. It has always been my module of choice for parsing command line options. It is easy to use for simple and complex cases too. I have a few questions.

Counter()
I'm guessing that each occurence of this command line arg increments the counter.
CSV()
Wouldnt this be a neat option to have? You supply a comma-separated series of values and it appears as a list when you access it:
./script.pl --csv_arg=a,b,c my @arg = $opt->get_csv_arg;
It wouldnt have to parse all the CSV syntax, just simple CSV. It is more convenient to specify things that way than repeatedly supplying the argument you want to cobble into a list.

Replies are listed 'Best First'.
Re: Getopt::Lucid - awesome module, a few questions
by afoken (Chancellor) on Jun 09, 2009 at 20:35 UTC
    Counter
    Right, as documented
    CSV
    You can get that behaviour by spliting a standard Param. How do you specify "simple CSV"? How does "simple CSV" pass a comma as a value, not as a separator? How does it pass quotes as values?

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)