Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: easiest way to read multiple word command arguments

by mhearse (Chaplain)
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);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049639]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-02-25 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (365 votes). Check out past polls.