Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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:

Comment on Re: getopt long, named argument with multiple values
Select or Download Code

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 making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2016-02-08 06:38 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (268 votes), past polls