The Getopt::Long or Getopt::Std modules, which are part of the Perl distribution, handle the passing of command line arguments. As I recall, one of the options allows you to put those arguments into a hash.
TStanley
-------- There's an infinite number of monkeys outside who want to talk to us
about this script for Hamlet they've worked out -- Douglas Adams/Hitchhiker's Guide to the Galaxy