Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Listing all of the perl modules installed

by Tux (Abbot)
on Oct 29, 2010 at 06:14 UTC ( #868238=note: print w/replies, xml ) Need Help??


in reply to Listing all of the perl modules installed

I bet searching here on monks would have given you a few examples of how monks do this. There is a plethora of scripts available by now as there are many ways to answer the question.

I also wrote a script myself, but with a few additions to make it easier to find module not (yet) installed, so that I don't have to dig on CPAN when I'm looking for a module that does XML/XPM/CSV/mysql/...

Note that my script works based on the list of modules available as seen by CPAN, so it will not find modules that were manually copied into the perl tree.

$ modlist -? usage: modlist [ -a AUT ] [ -r ] [ -i ] [ -nc ] [ <pattern> ] -a | --author=AUTHOR_ID Only modules from author -r | --registered Only registered modules -i | --installed Only installed modules -n | --new Only new modules -c | --csv Output module and version as CSV <pattern> Only modules that match pattern $ modlist -i xpm Module name Description + Version Bundle::Image::Info::XPM + 0.01 Image::Info::XPM + 1.07 Image::Xpm + 1.12 Tk::XPMs + 1.11 $ modlist -r peek Module name Description + Version Apache::Peek Devel::Peek for mod_perl Data::Peek A collection of low-level debug facilities + 0.31 Devel::Peek Peek at internal representation of Perl data + 1.04 Core since 5.006 1.00_01 in 5.010001 + 1.04 POE::API::Peek Peek into the internals of a running POE env $

It also does colorizing (when available), shows if it is a CORE module (using Module::Corelist), since when and what version in core,


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: Listing all of the perl modules installed
by Anonymous Monk on Jan 31, 2013 at 16:21 UTC
    Yeah, I did the search as suggested, and found it lacking. All I want is a way to use Module::Corelist to list the modules that are installed with perl on my box. Pretty simple, I'd say, but nothing I've found here on this site, seems to just do that. I read the doc from CPAN on Module::Corelist, and came up empty there also. Is this really that tough of a request? Just a simple script that uses Module::Corelist to list the installed modules. That's it.
      Revised comment: Thank you, I did finally find one. Not simple by any means, but I did find one.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2020-11-27 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?