Skip to content

Instantly share code, notes, and snippets.

@numberwhun
Created November 28, 2011 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numberwhun/1399230 to your computer and use it in GitHub Desktop.
Save numberwhun/1399230 to your computer and use it in GitHub Desktop.
List installed modules and their versions
# This prints out a list of all the installed Perl modules on the system and the version of each one
# that is currently installed
use strict;
use warnings;
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module -- $version\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment