There are a number of modules for handling command line arguments including:
/J\
In reply to Re: A smart way to handle @ARGV by gellyfish in thread A smart way to handle @ARGV by Scarborough