Fix typo in new Build.PL

This commit is contained in:
Alessandro Ranellucci 2013-06-22 22:57:36 +02:00
parent 0bd3d958e2
commit 6e63e938a0

View File

@ -35,7 +35,7 @@ if (defined $ENV{CPANM} && -x $ENV{CPANM}) {
$cpanm = $ENV{CPANM};
} elsif (-x (my $c = File::Spec->catfile($Config{installscript}, 'cpanm'))) {
$cpanm = $c;
} elsif ($^O = /^(?:darwin|linux)$/ && system(qw(which cpanm)) == 0) {
} elsif ($^O =~ /^(?:darwin|linux)$/ && system(qw(which cpanm)) == 0) {
$cpanm = 'cpanm';
}
die <<'EOF'