Thanks, Damien for synposis 26 on pod. I am not sure where to suggest additional features, so let me try it here.

Suggestion #1:

It would be nice if I could designate some snippets to become both code and pod. For example, I may want to define a syntax for a parser in my perl program,

my %syntax = {
   beginning  =>  qw( keywords ),
   center     =>  qw( code text musings music ),
   end        =>  qw( goodbye )
}

I would want my pod readers to see this to understand the syntax that my parser program allows. alas, this means that I have to maintain two versions: the one in the pod and the identical one in the code--and hope I don't forget to update both appropriately.

it would be great if we had a mechanism that would allow me to tell pod that the following code snippet should make it into the pod formatted output, too.

Suggestion #2:

A more ambitious (and probably to be rejected) suggestion would be to allow me to label a block, and insert it somewhere else. This way, I could define a section

=head1 SUBROUTINES
=insertrefs allsubs

Now I can keep my subroutine documentation with the subroutines themselves (something like

=labelfor allsubs
=head2 my function
...

the pod formatter would simply take all subroutine documentation and insert the snippets sequentially where the =insertref allsubs appeared.

of course, maybe I missed it and these two are already possible.

regards, /iaw


In reply to pod6 --- code+pod suggestion by iaw4

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.