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.
In reply to Re: How to read the arguments in command line?
by tobyink
in thread How to read the arguments in command line?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |