Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: getopt long, named argument with multiple values

by BrowserUk (Pope)
on Jan 07, 2013 at 02:23 UTC ( #1011936=note: print w/ replies, xml ) Need Help??

in reply to getopt long, named argument with multiple values

I can't help with the getopt problem, but from a pure 'if I was going to have to use this' perspective:

  • I'd hate to have to type --list again for each field;
  • And a new set of 's for each;
  • And all those comma separators;
  • And unless there are also alternatives to 'strX' part, that's more unnecessary repetition.

How about: --list '4==100,8>1000,7<=15'. It's easier to type and clearer to read.

And leaves you the simple task of breaking up the parameter yourself rather than fighting with an undocumented and experimental feature.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
network sites:

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2016-08-26 03:40 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (365 votes). Check out past polls.