#1 Automatic Help Option

Writing a wicked cool Perl script is nice, but it's even better if you can get other people to use it. One of the things most users really want is a help function. Our first wicked cool Perl script is a module to implement a --help operation.

Most good Perl scripts use the Plain Old Documentation (POD) feature of Perl to describe themselves. This module intercepts the --help on the command line and then prints out the POD for the program being run.


The official versions of the scripts in this book do contain POD. However, the documentation has been removed for the versions printed here to save space and eliminate redundancy. The full versions of the scripts (with POD) can be downloaded from the website www.nostarch.com/wcps.htm ...

Get Wicked Cool Perl Scripts now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.