|
|
| 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?? |
|
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'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||