Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-03-22 06:59 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (273 votes). Check out past polls.