Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 (Parson) 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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2018-11-13 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (146 votes). Check out past polls.

    Notices?