Skip to content

Commit

Permalink
Put $Config{perlpath} before other candidates in find_perl_interprete…
Browse files Browse the repository at this point in the history
…r(), so the user can change it if desired

git-svn-id: http://svn.perl.org/modules/Module-Build/trunk@4995 50811bd7-b8ce-0310-adc1-d9db26280581
  • Loading branch information
kenahoo committed Oct 9, 2004
1 parent 8c33131 commit 15b6c44
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Module/Build/Base.pm
Expand Up @@ -188,10 +188,9 @@ sub find_perl_interpreter {
$thisperl .= $exe unless $thisperl =~ m/$exe$/i;
}

my @candidates = map File::Spec->catfile($_, $thisperl), File::Spec->path();
push @candidates, $c->{perlpath};

foreach my $perl (@candidates) {
foreach my $perl ( $c->{perlpath},
map File::Spec->catfile($_, $thisperl), File::Spec->path()
) {
return $perl if -f $perl and $proto->_perl_is_same($perl);
}
return;
Expand Down

0 comments on commit 15b6c44

Please sign in to comment.