Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 studying the Monastery: (5)
As of 2014-09-21 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls