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

Pod::Help finally makes POD useful for scripts.

Just write the documentation for your script as POD and then add use Pod::Help qw(--help -h); to it. Now whenever someone calls your script with '-h' or '--help' (s)he will get your POD.

And if you don't want to distribute a module with your script (or require the user to install it), no problem. Pod::Help's code is so short you can easily copy it to your script, too.


Search, Ask, Know