Not really an answer, but along that same thought - I just submitted a feature request (rt://124867) to pmtools yesterday.

I was looking to do something like:

> perldoc --section SYNOPSIS Google::ProtocolBuffers > file.pl > perl file.pl

Essentially taking the helpful example from the SYNOPSIS section of a given module and putting it right into a file to run.


In reply to Re: POD: getting usage snippets from perldoc by VinsWorldcom
in thread POD: getting usage snippets from perldoc by LanX

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