Re: Newbie question: determining which perl modules are installed
[email protected] (Patrick LeBoutillier) Thu, 10 Jun 2004 13:43:17 -0400
| Newsgroups | perl.jpl |
|---|---|
| Message-ID | <[email protected]> |
Joshi Mandar-R9121Z wrote:
>Can somebody tell me how to check which all perl modules are already installed ?
>
>Regards
>Mandar
>
>
>
Try this:
#!/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";
}
--
=====================
Patrick LeBoutillier
Laval, Quebec, Canada