I've started adding a brief "self help" snippet in code that I write for others. This allows them to enter command -help from the command line and get the POD doc. We're still on Perl 5.005 here, so I'd guess that the warnings either don't appear in 5.6, or at least can be ignored with no warnings.
#!/usr/local/bin/perl -w use strict; use Getopt::Long; use Pod::Text; (my $PROGRAM = (split('/',$0))[-1]) =~ s/\..*$//; my $USAGE = <<__EOT__; Usage: $PROGRAM [-help] __EOT__ my $HELP; # Get the command-line parameters GetOptions("help" => \$HELP) or die($USAGE); if ($HELP) { $^W = 0; # Pod::Text throws warnings pod2text($0); exit(0); } # Continue with the rest of the program # ******************************************************** # * POD documentation # ******************************************************** __END__ =head1 NAME helpme - an example of command-line help =head1 SYNOPSIS helpme [-help] =head1 DESCRIPTION Put your description here! =head1 EXIT STATUS The following exit values are returned: 0 Successful completion -1 An error occurred =head1 AUTHOR INFORMATION Author: Elmer Fudd Address bug reports and comments to: Elmer.Fudd@killthewabbit.com =cut

In reply to Help from the command line by robsv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.