summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-07 10:57:11 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-07 10:57:11 +0000
commitd923656e4b61a7a7e564dd4edbad177cdcd7f475 (patch)
tree57c923eddd97c3e7e964828f61410ff6517e597c
parent66e4e5d58b6f1a43b01a82c3d198f3a5add40b57 (diff)
downloadperl-d923656e4b61a7a7e564dd4edbad177cdcd7f475.tar.gz
Better localisation of $_ in diagnostics.
This fixes bug #41717. p4raw-id: //depot/perl@30491
-rwxr-xr-xlib/diagnostics.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/diagnostics.pm b/lib/diagnostics.pm
index e81581b007..482fe28214 100755
--- a/lib/diagnostics.pm
+++ b/lib/diagnostics.pm
@@ -181,11 +181,11 @@ Tom Christiansen <F<tchrist@mox.perl.com>>, 25 June 1995.
=cut
use strict;
-use 5.006;
+use 5.009001;
use Carp;
$Carp::Internal{__PACKAGE__.""}++;
-our $VERSION = 1.16;
+our $VERSION = 1.17;
our $DEBUG;
our $VERBOSE;
our $PRETTY;
@@ -221,7 +221,7 @@ $DEBUG ||= 0;
my $WHOAMI = ref bless []; # nobody's business, prolly not even mine
local $| = 1;
-local $_;
+my $_;
my $standalone;
my(%HTML_2_Troff, %HTML_2_Latin_1, %HTML_2_ASCII_7);
@@ -323,7 +323,6 @@ my %msg;
{
print STDERR "FINISHING COMPILATION for $_\n" if $DEBUG;
local $/ = '';
- local $_;
my $header;
my $for_item;
while (<POD_DIAG>) {
@@ -548,7 +547,7 @@ my $count;
my $wantspace;
sub splainthis {
return 0 if $TRACEONLY;
- local $_ = shift;
+ $_ = shift;
local $\;
### &finish_compilation unless %msg;
s/\.?\n+$//;