Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: easiest way to read multiple word command arguments

by mhearse (Hermit)
on Aug 15, 2013 at 18:20 UTC ( #1049639=note: print w/ replies, xml ) Need Help??


in reply to easiest way to read multiple word command arguments

For simple command line args I recommend Getopt::Std. Use perldoc Getopt::Std to get a man page detailing usage. It's very easy to use:

use Getopt::Std; use Data::Dumper; my %opts; getopt('a:b:c:', \%opts); print Dumper(\%opts);


Comment on Re: easiest way to read multiple word command arguments
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (17)
As of 2014-12-18 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (59 votes), past polls