fix prototype mismatch (from Hans Mulder <hansm@xs4all.nl>)
authorGurusamy Sarathy <gsar@cpan.org>
Wed, 20 Oct 1999 01:00:50 +0000 (01:00 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Wed, 20 Oct 1999 01:00:50 +0000 (01:00 +0000)
p4raw-id: //depot/perl@4416

lib/CPAN/FirstTime.pm

index 731d3ff..2899849 100644 (file)
@@ -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;