Sometimes you may need to figure out which Perl modules you have installed on your server. This can be very useful when cloning a server for a development project. The easiest way to see every installed module and the module’s version is via a perl script. Here is a simple perl script that does this:
#!/usr/bin/perl
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "Module Name: $module Module Version: $version\n";
}