what perl modules are installed

Edwardson, Tony Tony.Edwardson at commerzbank.com
Wed Feb 13 14:09:27 GMT 2008


I use the following

use ExtUtils::Installed;
my ($inst) = ExtUtils::Installed->new();

foreach my $module (sort $inst->modules()) {
        printf "%-30s%s\n", $module, $inst->version($module);
}

Tony 


-- 

-----Original Message-----
From: london.pm-bounces at london.pm.org
[mailto:london.pm-bounces at london.pm.org] On Behalf Of Ian Docherty
Sent: Wednesday, February 13, 2008 1:30 PM
To: London.pm Perl M[ou]ngers
Subject: what perl modules are installed

I am sure other people have had this requirement.

How do I find out what perl modules are installed on a system and what 
version?

I have started at a company that has several servers, supposedly all 
servers have the same
modules installed but in practice modules have been installed by a 
variety of means, directly
from cpan, by manual installation, by copying files from other servers. 
I need to be able to
get a list of what is installed on each system.

I have found reference to a file perllocal.pod which is supposed to 
contain the list of perl
modules and their date, but no version and I suspect it is only used 
when doing a 'make'.

Is there a quick way of doing this rather than traversing the @INC 
directories and reading
every file?

Regards
Ian C. Docherty (icydee)



********************************************************************** 
This is a commercial communication from Commerzbank AG.

This communication is confidential and is intended only for the person to
whom it is addressed.  If you are not that person you are not permitted to
make use of the information and you are requested to notify
<mailto:LONIB.Postmaster at commerzbankib.com> immediately that you have
received it and then destroy the copy in your possession.

Commerzbank AG may monitor outgoing and incoming e-mails. By replying to
this e-mail you consent to such monitoring. This e-mail message and any
attached files have been scanned for the presence of computer viruses.
However, you are advised that you open attachments at your own risk.

This email was sent either by Commerzbank AG, London Branch, or by
Commerzbank Corporates & Markets, a division of Commerzbank. Commerzbank AG
is a limited liability company incorporated in the Federal Republic of
Germany. Registered Company Number in England BR001025. Our registered
address in the UK is 60 Gracechurch Street, London, EC3V 0HR. We are
regulated by the Financial Services Authority for the conduct of investment
business in the UK and we appear on the FSA register under number 124920. 

**********************************************************************



More information about the london.pm mailing list