gugod/App-perlbrew — pull request #182 by kmcgrath (2011-12-29 17:29:14+00:00)
Title: Fix for issue #152

PERL5LIB and other PERL* environment variables are not correctly reset when switching between local::lib instances.

The %ENV hash must be updated so that build_environment_var_for() operates on the changed values. The function also needs to be told to interpolate.

@ENV{keys %env} = values %env;
my %lib_env = local::lib->build_environment_vars_for($base, 0, 1);