From: Rafael Garcia-Suarez Date: Tue, 4 Feb 2003 20:02:56 +0000 (+0000) Subject: Better version of change #18648, by Enache Adrian X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=834a3ffa15e23871424d94f91fd39fe77b05f76b;p=p5sagit%2Fp5-mst-13.2.git Better version of change #18648, by Enache Adrian Message-ID: <20030204101533.GA11817@ratsnest.hole> p4raw-link: @18648 on //depot/perl: 7c2549db3c820cf72273bacc18a4e3d2b361563d p4raw-id: //depot/perl@18656 --- diff --git a/op.c b/op.c index 81120fa..7cb7fad 100644 --- a/op.c +++ b/op.c @@ -2964,14 +2964,14 @@ Perl_vload_module(pTHX_ U32 flags, SV *name, SV *ver, va_list *args) } { line_t ocopline = PL_copline; - line_t ocopline2 = PL_curcop->cop_line; + COP *ocurcop = PL_curcop; int oexpect = PL_expect; utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(FALSE, 0), veop, modname, imop); PL_expect = oexpect; PL_copline = ocopline; - PL_curcop->cop_line = ocopline2; + PL_curcop = ocurcop; } }