From: John L. Allen Date: Fri, 22 Mar 2002 15:38:35 +0000 (-0500) Subject: perldoc -m [PATCH] X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f1cdc2b65e910cc1cb975a153f8b593cf8934cde;p=p5sagit%2Fp5-mst-13.2.git perldoc -m [PATCH] From: "John L. Allen" Message-ID: p4raw-id: //depot/perl@15449 --- diff --git a/utils/perldoc.PL b/utils/perldoc.PL index 0824e0a..7929a27 100644 --- a/utils/perldoc.PL +++ b/utils/perldoc.PL @@ -342,7 +342,7 @@ sub searchfor { for ($i=0; $i<@dirs; $i++) { $dir = $dirs[$i]; ($dir = VMS::Filespec::unixpath($dir)) =~ s!/\z!! if $Is_VMS; - if ( ( $ret = check_file $dir,"$s.pod") + if ( (! $opt_m && ( $ret = check_file $dir,"$s.pod")) or ( $ret = check_file $dir,"$s.pm") or ( $ret = check_file $dir,$s) or ( $Is_VMS and @@ -458,7 +458,8 @@ foreach (@pages) { print STDERR "Loosely found as @files\n" if $opt_v; } else { - print STDERR "No documentation found for \"$_\".\n"; + print STDERR "No " . + ($opt_m ? "module" : "documentation") . " found for \"$_\".\n"; if (@global_found) { print STDERR "However, try\n"; for my $dir (@global_found) {