From: Gurusamy Sarathy Date: Wed, 20 Oct 1999 01:00:50 +0000 (+0000) Subject: fix prototype mismatch (from Hans Mulder ) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c9d9b47338546ba1896637d2b0c054dc47bef6ef;p=p5sagit%2Fp5-mst-13.2.git fix prototype mismatch (from Hans Mulder ) p4raw-id: //depot/perl@4416 --- diff --git a/lib/CPAN/FirstTime.pm b/lib/CPAN/FirstTime.pm index 731d3ff..2899849 100644 --- a/lib/CPAN/FirstTime.pm +++ b/lib/CPAN/FirstTime.pm @@ -78,7 +78,8 @@ dialog anytime later by typing 'o conf init' at the cpan prompt.) } else { $fastread = 1; $CPAN::Config->{urllist} ||= []; - *prompt = sub { + # prototype should match that of &MakeMaker::prompt + *prompt = sub ($;$) { my($q,$a) = @_; my($ret) = defined $a ? $a : ""; printf qq{%s [%s]\n\n}, $q, $ret;