I've written a standalone script (not a module) which contains embedded POD suitable for display by Pod::Usage.

Inside the script I have the standardish prolog which I've condensed to this sample:

#!/usr/bin/perl -w =head1 NAME foo - Do something. =cut =head1 AUTHOR me! =cut =head1 LICENSE Copyright (c) 2005-2006 by Steve Kemp. All rights reserved. ... =cut

This works nicely; pod2man creates a nice manpage for me and Pod::Usage also allows me to show the documentation to people who invoke the script with a "--manual" flag, however I have a big problem - both pod2man + Pod::Usage display the internal documentation.

Assuming I have this:

=head2 parseCommandLineArguments Parse the command line arguments this script was given. =cut sub parseCommandLineArguments { .. }

Is there a way of making sure this internal documentation is not appended to my fine manpage, or displayed by Pod::Usage?

Steve
--

In reply to pod2man and Pod::Usage Weirdness by skx

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.