summaryrefslogtreecommitdiff
path: root/utils/perldoc.PL
diff options
context:
space:
mode:
authorDaniel Grisinger <dgris@dimensional.com>1998-10-06 17:56:51 -0600
committerGurusamy Sarathy <gsar@cpan.org>1998-10-17 01:45:52 +0000
commitfef2f0f0c6a0f4d116ea8ac6f4c7149d12e53b12 (patch)
tree6a09ade5874950b502fdcb16fbed3c7a7f11bf45 /utils/perldoc.PL
parent0832b467031cd3ce95ba11db40b224260ad8c83e (diff)
downloadperl-fef2f0f0c6a0f4d116ea8ac6f4c7149d12e53b12.tar.gz
perldoc pod update
Message-ID: <m3g1d0kj8c.fsf@perrin.dimensional.com> Subject: [PATCH _02 and _52] perldoc p4raw-id: //depot/perl@1987
Diffstat (limited to 'utils/perldoc.PL')
-rw-r--r--utils/perldoc.PL4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/perldoc.PL b/utils/perldoc.PL
index b680b90563..4fff93452f 100644
--- a/utils/perldoc.PL
+++ b/utils/perldoc.PL
@@ -91,7 +91,7 @@ Options:
-F Arguments are file names, not modules
-v Verbosely describe what's going on
-X use index if present (looks for pod.idx at $Config{archlib})
-
+ -q Search the text of questions (not answers) in perlfaq[1-9]
PageName|ModuleName...
is the name of a piece of documentation that you want to look at. You
@@ -459,7 +459,7 @@ if ($opt_q) {
my @pod;
while (<>) {
- if (/^=head2\s+.*$opt_q/oi) {
+ if (/^=head2\s+.*(?:$opt_q)/oi) {
$found = 1;
push @pod, "=head1 Found in $ARGV\n\n" unless $found_in{$ARGV}++;
} elsif (/^=head2/) {