theunixtips.com
perl : Process Command Line Arguments
Getopt module provides a very good way to process command line flags and also performs the type checking of the values provided.