Re: Trapping by opmask sets strange parser state [PATCH]
Gisle Aas [Fri, 15 Sep 2000 16:23:41 +0000 (18:23 +0200)]
Message-Id: <m3aed9ybrm.fsf@eik.g.aas.no>

p4raw-id: //depot/perl@7098

toke.c

diff --git a/toke.c b/toke.c
index 9834d90..4b65d62 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -357,7 +357,6 @@ Perl_lex_start(pTHX_ SV *line)
            SAVEVPTR(PL_nextval[toke]);
        }
        SAVEI32(PL_nexttoke);
-       PL_nexttoke = 0;
     }
     SAVECOPLINE(PL_curcop);
     SAVEPPTR(PL_bufptr);
@@ -391,6 +390,7 @@ Perl_lex_start(pTHX_ SV *line)
     PL_lex_stuff = Nullsv;
     PL_lex_repl = Nullsv;
     PL_lex_inpat = 0;
+    PL_nexttoke = 0;
     PL_lex_inwhat = 0;
     PL_sublex_info.sub_inwhat = 0;
     PL_linestr = line;