summaryrefslogtreecommitdiff
path: root/lib/diagnostics.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-15 17:43:43 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-15 17:43:43 +0000
commit8ec7363a788490ed4796ca94a29acc1853cb263b (patch)
tree60ca65d7109e51329efc563084f8dee8d5df9827 /lib/diagnostics.pm
parent240b676612359dc858a2fba0a01262d0ee466078 (diff)
downloadperl-8ec7363a788490ed4796ca94a29acc1853cb263b.tar.gz
Patch by Abigail to avoid using $& in diagnostics.pm.
p4raw-id: //depot/perl@30601
Diffstat (limited to 'lib/diagnostics.pm')
-rwxr-xr-xlib/diagnostics.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diagnostics.pm b/lib/diagnostics.pm
index 68253fcb35..7af5efa177 100755
--- 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] );
}
}