Ah that's what's up! The findmodules script is only finding those modules installed with the new version of Perl (5.8.1) that came on FC1!

How can I modify the findmodules script to find modules that are available for use, even if I brought them in via CPAN using a prior version of Perl?

Which document do I need to be looking into for answers?

Thanks!
Clint



#!/usr/bin/perl -w

# This program will tell me what modules I have installed on my machine.

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






LoBue, Mark wrote:
-----Original Message-----
From: Clint [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 4:53 PM
To: [EMAIL PROTECTED]
Subject: Re: Fedora and Findmodules Script


Yes, I have probably around 60+ modules that I had previously dl'd prior to the upgrade to Fedora. For example, I know I previously had (and still have) Geo::Weather installed, and CPAN confirms this:


cpan> install Geo::Weather
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Tue, 18 Nov 2003 14:46:22 GMT
Geo::Weather is up to date.

So then I installed a *new* module Weather::Underground. Here is the relevant output from CPAN:

cpan> install Weather::Underground
Running install for module Weather::Underground
Running make for M/MN/MNAGUIB/Weather-Underground-2.12.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
[....much cpan output deleted here ...]
Running make install
Installing /usr/lib/perl5/site_perl/5.8.1/Weather/Underground.pm
Installing /usr/share/man/man3/Weather::Underground.3pm
Writing /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/auto/We
ather/Underground/.packlist
Appending installation info to /usr/lib/perl5/5.8.1/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install -- OK


I'm just going by memory here, because I too have upgraded to Fedora and
can't go back and check RH9, but isn't the perl on RH9 version 5.8.0, not
5.8.1?  What happens if you do:
find /usr/lib -name Underground.pm -print

I'm just wondering if the script isn't going back to search prior versions,
and does your @INC show the prior version (perl -V).

-Mark




-- Clint <[EMAIL PROTECTED]>


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to