Permalink
Browse files

Fix inc directories when working with local::lib

  • Loading branch information...
1 parent d47a154 commit d7d9f9aa7d55028182fc842229ad0d4fa8a24190 @dolmen dolmen committed Jul 16, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 Changes
  2. +2 −1 lib/Devel/Cover.pm
View
@@ -1,6 +1,7 @@
Devel::Cover history
{{$NEXT}}
+ - Fix inc directories when working with local::lib (Olivier Mengué).
Release 0.91 - 15th July 2012
- Generate inc directories at runtime (rt 68991, 76528, 66881, 37349).
View
@@ -108,7 +108,8 @@ BEGIN
eval
{
local %ENV = %ENV;
- /perl/i and delete $ENV{$_} for keys %ENV;
+ # Clear *PERL* variables, but keep PERL5?LIB for local::lib environments
+ /perl/i and !/^PERL5?LIB$/ and delete $ENV{$_} for keys %ENV;
my $cmd = "$^X -MData::Dumper -e " . '"print Dumper \@INC"';
my $VAR1;
# print STDERR "Running [$cmd]\n";

0 comments on commit d7d9f9a

Please sign in to comment.