http://www.perlmonks.org?node_id=55632


in reply to Reading command line flags into variables...?

You might want to check out the Getopt::Std module.