[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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