in reply to Make command line argument optional
You may want to investigate Getopt::Std and Getopt::Long.
Give a man a fish: <%-{-{-{-<