Friday, May 5, 2006

To find the Modules of perl installed on a server

 

#!/usr/local/bin/perl

use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
open (MYFILE, ‘>>/user/x0013158/Public/ModulesInstalled_in_www2_data.txt’);
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || “???”;
       print  MYFILE “$module — $version\n”;
}

close (MYFILE);

Posted by Babai at 10:52:39
Comments

Leave a Reply