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 > > perl

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


    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/ $ podpath CGI D:/citrusperl/site/lib/

    perldoc has no issues with it

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

    No quotemeta in        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)