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?

Replies are listed 'Best First'.
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!