in reply to How should I manage CPAN when using two versions of Perl in my computer?

I use openSUSE, too. I usually install new libraries to system perl viz zypper as root, but if they're missing, I use CPAN with local::lib as the normal user. I have several more Perl versions istalled, too (including blead), I compile them from sources by hand. To use them, I just
unset ${!PERL*}

to remove the local::lib settings, then run /path/to/perl5.XX/bin/cpan and it will install the modules into the correct path where the corresponding perl will find them.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: How should I manage CPAN when using two versions of Perl in my computer?
by hda (Chaplain) on Jun 18, 2018 at 07:54 UTC
    Thanks. Very interesting approach. I'll have a look at local:lib.