Browse:  GUI  JavaScript  Linux  OpenBSD  PHP  Software  Web  Windows  Deals
 

Listing Installed Perl Modules
by Cory Rauch 2007-04-08 Category: Linux-System

I have not posted in a month and a half since I was busy, but I recently needed to move some of my perl scripts over to a new faster box. In doing so though I would need to also install required perl modules on the new box like I had installed on my old box. But I do not remember every perl module I installed, so I needed a way to list them. So here is a simple perl script to accomplish this task.

Open a new text file and copy the code below into it.

#!/usr/local/bin/perl

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

After saving run the script as root using perl or chmod 755; ./

Other ImprovedSource Articles:
Boot Fedora Linux Faster: How I Modified Fedora To Boot In Under 25 Seconds
Linux Fastest Boot Time Challenge
How to make a System Restore CD-ROM

[ Back ]

ImprovedSource. Copyright 2007 + Contact Us + Home + Search + RSS Feed