Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: POD: getting usage snippets from perldoc

by VinsWorldcom (Parson)
on Mar 23, 2018 at 18:08 UTC ( #1211629=note: print w/replies, xml ) Need Help??


in reply to POD: getting usage snippets from perldoc

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.

Replies are listed 'Best First'.
Re^2: POD: getting usage snippets from perldoc
by beech (Vicar) on Mar 27, 2018 at 23:21 UTC

    Hi,

    See podselect / Pod::Select

    Speaking of rt://pmtools, some really old bugs

    $ pmdesc CGI no description found $ pman CGI pod2text: unable to format D:/citrusperl/site/lib/CGI.pm $ podpath CGI D:/citrusperl/site/lib/CGI.pm

    perldoc has no issues with it

    $ perldoc -l CGI D:\citrusperl\site\lib\CGI.pod $ perldoc -l -m CGI D:\citrusperl\site\lib\CGI.pm

    No quotemeta in Loaded.pm        if ($path =~ m/$devel_loaded$/) {

    plxload still hardcodes /dev/null instead of using File::Spec->devnull

    Naturally all the test files pretend they're on unix (new bug)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1211629]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2018-07-22 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (454 votes). Check out past polls.

    Notices?