Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
XP is just a number
 
PerlMonks  

Re: How to read the arguments in command line?

by tobyink (Prior)
on Jul 22, 2012 at 22:20 UTC ( #983087=note: print w/ replies, xml ) Need Help??


in reply to How to read the arguments in command line?

If it's a small script, use Getopt::Long or Getopt::Long::Descriptive.

If it's bigger, and all-singing, all-dancing, then take a look at App::Cmd.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re: How to read the arguments in command line?
Re^2: How to read the arguments in command line?
by Anonymous Monk on Jul 22, 2012 at 22:29 UTC
    Thanks guys, problem solved! I didn't know there was such a helpful function!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2013-05-19 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (397 votes), past polls