From 9581ddf641e7194733c334f5e7bd309872801142 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 22 Dec 2016 10:52:46 +0100 Subject: [PATCH] Bugfix: local::lib check was creating ~/perl5. #3635 --- Build.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build.PL b/Build.PL index bace8ae4ba..93cc7b1e65 100644 --- a/Build.PL +++ b/Build.PL @@ -109,7 +109,7 @@ EOF push @cpanm_args, "--sudo" if $sudo; # install local::lib without --local-lib otherwise it's not usable afterwards - if (!eval "use local::lib; 1") { + if (!eval "use local::lib qw(local-lib); 1") { my $res = system $cpanm, @cpanm_args, 'local::lib'; warn "Warning: local::lib is required. You might need to run the `cpanm --sudo local::lib` command in order to install it.\n" if $res != 0;