in reply to Help! @INC problem

Unfortunately, you can't use all modules compiled for Perl 5.6.x with Perl 5.8.x due to changes in Perl between 5.6 and 5.8. The installation of Perl 5.8.5 might have updated a symbolic link, so that /usr/bin/perl points to a 5.8.5 binary instead of the 5.6.1 binary. If that's the case, you can change the link or make a shell alias to run 5.6.1 specifically, if you can find its perl. Run perl -v to see the version.

If you really don't have Perl 5.6.1 installed anymore, you'll have to reinstall the modules under Perl 5.8, just as you did for the DBI.

Replies are listed 'Best First'.
Re^2: Help! @INC problem
by zerohalo (Initiate) on Dec 08, 2004 at 18:56 UTC
    Thanks, chromatic.

    I ran perl -v which told me that my current version was 5.8.5. So although 5.6.1 is still on my system it doesn't seem to be installed.

    So I just reinstalled all the modules that I had previously installed for 5.6.1, using MCPAN, and things work again! Hurrah.

    I still have 5.6.1 on the box. Do I just let it be or should I delete that whole folder?

    Thanks again.

      If things work with 5.8.5 (and I don't know of any regressions that might affect you), it should be safe to delete the 5.6.1 folders. It won't hurt to keep them around, but if you're careful, it shouldn't hurt to delete them.

      If you're really paranoid, you might rename them and leave them be for a while to see if all of your required applications still work. When you've satisfied your paranoia, then delete them.

      Perl 5.8.x won't use those libraries by default, though, and it won't use some of them well at all.