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


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.