How to Display Installed Perl Modules

Published Date Author: , Posted September 29th, 2009 at 2:11:20am

[code lang=”perl”]

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

[/code]

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.