From: Gurusamy Sarathy Date: Wed, 2 Feb 2000 06:03:04 +0000 (+0000) Subject: more meaningful message on invalid pattern argument (from X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b62b7eeb9524e037f1672b4b9af0384f4a094694;p=p5sagit%2Fp5-mst-13.2.git more meaningful message on invalid pattern argument (from Kevin Meltzer ) p4raw-id: //depot/perl@4945 --- diff --git a/utils/perldoc.PL b/utils/perldoc.PL index 5dd0e1b..c4a9113 100644 --- a/utils/perldoc.PL +++ b/utils/perldoc.PL @@ -559,6 +559,13 @@ if ($opt_q) { local @ARGV = @found; # I'm lazy, sue me. my $found = 0; my %found_in; + my $rx = eval { qr/$opt_q/ }; + die <) { if (/^=head2\s+.*(?:$opt_q)/oi) {