Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2014-07-25 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls