Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Listing all installed modules

by scottj (Monk)
on Feb 10, 2004 at 21:23 UTC ( #328038=note: print w/replies, xml ) Need Help??


in reply to Listing all installed modules

Not exactly what you're looking for, but perldoc perllocal will show everything that you've installed with CPAN.

I've also seen a one-liner which does something more along the lines of what you are asking about, although it doesn't seem to return a complete list:

perl -MExtUtils::Installed -e'my $inst = ExtUtils::Installed->new(); print $_, $/ for $inst->modules'

Update: Actually, the second option that I gave does give a complete output. I forgot that ExtUtils::Installed uses "Perl" to represent the core modules. So you're still not technically getting a complete listing of all modules, but according to the method ExtUtils::Installed is using, the listing is complete.

Because of the method used by ExtUtils::Installed to represent the core, you are basically getting the same from both of the above options. The difference is that the second returns a nice, clean list, while the first is intended to be in a human-readable format.

Replies are listed 'Best First'.
Re: Re: Listing all installed modules
by Anonymous Monk on Feb 11, 2004 at 04:45 UTC
    beware of evil software that deletes perllocal (stupid Makefile.PL for Everything-base distribution)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-05-19 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?