From: Jochen Wiedmann Date: Thu, 17 Sep 1998 17:16:06 +0000 (+0200) Subject: ExtUtils::MakeMaker::prompt cannot return 0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ad0a0f606dfe6bb2ec67942ae23eef93c8ce770;p=p5sagit%2Fp5-mst-13.2.git ExtUtils::MakeMaker::prompt cannot return 0 Message-ID: <360127B6.E44564A@ispsoft.de> p4raw-id: //depot/perl@1851 --- diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm index 3e17be1..6321926 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 {