Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Tool for pulling up documentation for individual functions in a module?

by haukex (Archbishop)
on Apr 14, 2020 at 17:30 UTC ( [id://11115529]=note: print w/replies, xml ) Need Help??


in reply to Tool for pulling up documentation for individual functions in a module?

perldoc -f works for built-in Perl functions. I'm wondering if there is a tool out there for pulling up a pod entry for a function in my own module. Thanks.

perlfunc is treated specially by the tools, it's not a general-purpose solution at work there. Although there is Pod::Select, that's deprecated in the core now, and it seems to me that Pod-Simple doesn't have a direct replacement. A couple of possible solutions are: I haven't tried them, but on CPAN there's Pod::Simple::Select and Pod::Section (sadly, both modules don't appear to have a decent test suite). Lower-level would be to have a look at how the select method in Pod::Usage works (that module could also be used in a hacky solution by redirecting its output), or if you want to write something custom, I've used Pod::Simple::SimpleTree (example).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found