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;