what perl modules are installed
Matt Lawrence
matt.lawrence at virgin.net
Wed Feb 13 18:47:06 GMT 2008
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.
Matt
More information about the london.pm
mailing list