This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix prototype mismatch (from Hans Mulder <hansm@xs4all.nl>)
[perl5.git] / 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;