Subject: | perlbrew switch leaves old PERL5LIB around |
If a user sets PERL5LIB (probably most commonly via local::lib) and uses perlbrew
switch, it's possible that the switched-to perl is incompatible with the old PERL5LIB,
causing problems. This is a difficult problem to solve automatically, because perhaps
the user set PERL5LIB themselves in such a way that it *will* work with the switched-to
perl. I'm filing this bug as a means to start discussion of how to handle the situation.
A suggestion from edenc on IRC is for l::l to set an environment variable that perlbrew
looks at and uses to reset PERL5LIB when doing a perlbrew switch. I'd like input on this
as I consider it myself.