in reply to Command Parsing

perlintro is a good place for starting. It should teach you enough Perl to achieve what you want.

If you have any specific problems, please show us the code you've written.