Localize $! in splainthis() too. (see bug #41717)
Rafael Garcia-Suarez [Wed, 7 Mar 2007 11:00:07 +0000 (11:00 +0000)]
p4raw-id: //depot/perl@30492

lib/diagnostics.pm

index 482fe28..68253fc 100755 (executable)
@@ -549,6 +549,7 @@ sub splainthis {
     return 0 if $TRACEONLY;
     $_ = shift;
     local $\;
+    local $!;
     ### &finish_compilation unless %msg;
     s/\.?\n+$//;
     my $orig = $_;