projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
240b676
)
Patch by Abigail to avoid using $& in diagnostics.pm.
Rafael Garcia-Suarez [Thu, 15 Mar 2007 17:43:43 +0000 (17:43 +0000)]
p4raw-id: //depot/perl@30601
lib/diagnostics.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/diagnostics.pm
b/lib/diagnostics.pm
index
68253fc
..
7af5efa
100755
(executable)
--- a/
lib/diagnostics.pm
+++ b/
lib/diagnostics.pm
@@
-394,7
+394,7
@@
my %msg;
$toks[$i] = '[\da-f]+';
}
} elsif( length( $toks[$i] ) ){
- $toks[$i] =~ s/^.*$/\Q$&\E/;
+ $toks[$i] = quotemeta $toks[$i];
$conlen += length( $toks[$i] );
}
}