This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: PL_copline inconsistency
[perl5.git] / toke.c
diff --git a/toke.c b/toke.c
index 46066d1..26f706e 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -677,6 +677,7 @@ Perl_lex_start(pTHX_ SV *line)
     SAVEDESTRUCTOR_X(restore_rsfp, PL_rsfp);
     SAVEINT(PL_expect);
 
+    PL_copline = NOLINE;
     PL_lex_state = LEX_NORMAL;
     PL_expect = XSTATE;
     Newx(parser->lex_brackstack, 120, char);