what perl modules are installed

Aaron Trevena aaron.trevena at gmail.com
Thu Feb 14 09:51:06 GMT 2008


On 13/02/2008, Matt Lawrence <matt.lawrence at virgin.net> wrote:
> Adriano Ferreira wrote:
> > On Feb 13, 2008 12:09 PM, Edwardson, Tony
> > <Tony.Edwardson at commerzbank.com> wrote:
> >
> >> 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);
> >> }
> >>
> >
> > ExtUtils::Installed is for regularly installed files (it reads info
> > from .packlist files). For modules which were copied into the library
> > dirs, only traversing @INC will do it right.
> >
> >
> FWIW, Module::Util installs a script called pm_which:
>
> $ pm_which -Vnm ''
>
> Lists all modules in @INC (by module name), along with their version
> numbers.

Missing dependancy for File::Find::Rule when I tried this on one of
our servers - just a head's up, as rt.cpan.org couldn't find a queue
for it when I tried to add it.

A.

-- 
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Hosting


More information about the london.pm mailing list