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

@INC changes on Perl upgrade



I did a dist upgrade yesterday and went from 5.8.7 to 5.8.8.

I had Class::DBI installed from the deb package.  I then upgraded via
CPAN (yes, mixing package systems is a mistake).

So, I had CDBI in two places:

    /usr/local/share/perl/5.8.7/Class/DBI.pm
    /usr/share/perl5/Class/DBI.pm

Now after upgrading Perl, @INC looks like this:

    /etc/perl
    /usr/local/lib/perl/5.8.8
    /usr/local/share/perl/5.8.8
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.8
    /usr/share/perl/5.8
    /usr/local/lib/site_perl
    /usr/local/lib/perl/5.8.7
    /usr/local/share/perl/5.8.7
    /usr/local/lib/perl/5.8.4
    /usr/local/share/perl/5.8.4
    /usr/local/lib/perl/5.8.2
    /usr/local/share/perl/5.8.2
    /usr/local/lib/perl/5.8.1
    /usr/local/share/perl/5.8.1
    /usr/local/lib/perl/5.8.0
    /usr/local/share/perl/5.8.0

So that upgrade now favors /usr/share/perl5 over /usr/local/share/perl/5.8.7.

That is, before the upgrade I was using the local copy:

    /usr/local/share/perl/5.8.7/Class/DBI.pm

and now after the upgrade I'm now using the older version:

    /usr/share/perl5/Class/DBI.pm

Shouldn't locally installed modules be loaded over the modules in
/usr/share?



-- 
Bill Moseley
moseley@hank.org



Reply to: