Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Module Finder

by Dietz (Curate)
on Oct 19, 2006 at 06:21 UTC ( #579283=note: print w/ replies, xml ) Need Help??


in reply to Re: Module Finder
in thread Module Finder

If you have perldoc available on your system (some sysadmins refuse to install it), it's as easy as:

on AIX:

$ perldoc -l File::Find /usr/opt/perl5/lib/5.8.2/File/Find.pm
or on Windows (returning backslashes):
C:\>perldoc -l File::Find C:\Perl\lib\File\Find.pm


Comment on Re^2: Module Finder
Select or Download Code
Replies are listed 'Best First'.
Re^3: Module Finder
by innominate (Beadle) on Oct 31, 2006 at 15:26 UTC
    That's definately a good way to find a module, but if I don't know the root or branches, it does me no good...

      The example with perldoc wasn't meant to be a reply to your OP. It was a reply to blazar's File::Find one liner.

      However, if you happen to know the full last part of the module name you're searching for (i.e. Digest::MD5) you could use a recursive search (-r) to find the path to the pm file:

      $ perldoc -l -r MD5 /usr/lib/perl/5.8/Digest/MD5.pm

      Update:
      I just noticed that perldoc doesn't show multiple matches:

      $ perldoc -li html::parser /usr/lib/perl5/HTML/Parser.pm $ perldoc -li xml::parser /usr/lib/perl5/XML/Parser.pm $ perldoc -lri parser /usr/lib/perl5/HTML/Parser.pm

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (15)
As of 2015-07-29 18:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls