Perhaps this is beyond the scope of what pod2usage is intended to do

I've found Pod::Usage great for simple stuff, and sometimes finicky for more complicated stuff, so that would be my hand-waving reply :-) Some POD parsers were originally written in the olden days so they are not great fun to debug and figure out.

I usually just have a short SYNOPSIS with a verbatim block of a brief summary of the command-line args, I try to keep it under half a page, and at the end a note for the user to run perldoc scriptname if they want the long version. That then gives the usual behavior for scriptname --help (a short usage summary), and the entire POD ends up being structured the same way a lot of man pages are (a short usage summary in the Synopsis followed by the details).


In reply to Re: pod2usage() -sections omits marked-up text from =head lines? by Anonymous Monk
in thread pod2usage() -sections omits marked-up text from =head lines? by karlberry

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.