in reply to Calling options via Sub Routines
There's a nice tutorial about parsing command-line arguments, right here in the monastery. I read it (but never used it) and it looks very informative.
In Section
Seekers of Perl Wisdom
in reply to Calling options via Sub Routines