List Perl Modules

From LQWiki
(Redirected from List perl modules)
Jump to navigation Jump to search

List Perl Modules And Versions

Here's a quick little perl script to list the modules with their versions:

#!/usr/bin/perl
# list installed modules
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
  my $version = $instmod->version($module) || "???";
  print "$module -- $version\n";
}