Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: easiest way to read multiple word command arguments

by kennethk (Abbot)
on Aug 15, 2013 at 19:12 UTC ( #1049645=note: print w/replies, xml ) Need Help??

in reply to easiest way to read multiple word command arguments

Is there a good reason you don't just use Getopt::Std or Getopt::Long, and then require that multiword input get quoted? e.g. -a one -b 'two words' -c 'three words here' -a 'two words' -b oneword -c 'four words here now'

This would seem to be more in line with *NIX tradition.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049645]
[LanX]: ... I found YAPC EU more entertaining (and international )than YAPC NA
[robby_dobby]: What's the site for YAPC::EU?
[LanX]: Robby Dobby no IIRC Sinai is already part of Asia
[robby_dobby]: page for yapceu is out of date by 2 years
[robby_dobby]: LanX: Sharm-el-Sheikh is in Egypt
[robby_dobby]: Thanks, choroba
[LanX]: yes and Egypt (like Turkey and Russia) belongs to two continents
[choroba]: Also Europe and Asia are geographically one continent, the division is political
[robby_dobby]: I always thought everything on the other side of Suez to be Africa. That's an entire continent

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2017-04-24 16:02 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (442 votes). Check out past polls.