Here are some good resources you should dive into in your free time to understand more about how to use these modules. I was a bit confused myself at first, but once you undestand how to use them, you can produce high quality user friendly command line programs with little effort.
Permutations, Getopt::Long, and Pod::Usage
http://cpan.uwinnipeg.ca/htdocs/perl/Usage.html