[Omaha.pm] FW: Checking for installed PERL modules

Jay Hannah jhannah at omnihotels.com
Wed Jan 4 16:32:15 PST 2006


From: Sean J. Edwards
> I found this on CPAN to check for installed modules:
> 
> #!/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";
> }

Cool. "perldoc perllocal" is handy sometimes too.

j



More information about the Omaha-pm mailing list