summaryrefslogtreecommitdiff
path: root/lib/ExtUtils
diff options
context:
space:
mode:
authorJochen Wiedmann <joe@ispsoft.de>1998-09-17 19:16:06 +0200
committerGurusamy Sarathy <gsar@cpan.org>1998-09-23 10:37:05 +0000
commit9ad0a0f606dfe6bb2ec67942ae23eef93c8ce770 (patch)
tree6360af94b904c544cfbd5051d0ce86452613b5a9 /lib/ExtUtils
parent85fe4bb3cd62e7d3362c56b2eb9543ddb17e9a79 (diff)
downloadperl-9ad0a0f606dfe6bb2ec67942ae23eef93c8ce770.tar.gz
ExtUtils::MakeMaker::prompt cannot return 0
Message-ID: <360127B6.E44564A@ispsoft.de> p4raw-id: //depot/perl@1851
Diffstat (limited to 'lib/ExtUtils')
-rw-r--r--lib/ExtUtils/MakeMaker.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm
index 3e17be1a00..6321926948 100644
--- a/lib/ExtUtils/MakeMaker.pm
+++ b/lib/ExtUtils/MakeMaker.pm
@@ -192,7 +192,7 @@ sub prompt ($;$) {
} else {
print "$def\n";
}
- return $ans || $def;
+ return ($ans ne '') ? $ans : $def;
}
sub eval_in_subdirs {