Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: POD: getting usage snippets from perldoc

by VinsWorldcom (Prior)
on Mar 23, 2018 at 18:08 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1211629]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found