24 Dec
2003
24 Dec
'03
09:46
Ahbaid Gaffoor wrote:
how do you test to see what perl modules are installed?
All of them? Very quick and very dirty find /usr/lib/perl5 | egrep '\.pm' If you're interested in modules that aren't part of core Perl --- 8< --- use ExtUtils::Installed; my $installed = ExtUtils::Installed->new(); foreach (grep(!/^Perl$/, $installed->modules())) { print "$_ [".($installed->version($_) || 'unknown')."]\n"; } --- 8< --- sjb