Created
November 28, 2011 05:33
-
-
Save numberwhun/1399230 to your computer and use it in GitHub Desktop.
List installed modules and their versions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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