Re: [PATCH: TODO Tests] Re: [perl #53806] No complain about bareword
Rafael Garcia-Suarez [Tue, 20 May 2008 09:45:19 +0000 (11:45 +0200)]
From: "Rafael Garcia-Suarez" <rgarciasuarez@gmail.com>
Message-ID: <b77c1dce0805200045i1000598ci13c9cb3a29f64b6d@mail.gmail.com>

p4raw-id: //depot/perl@33874

toke.c

diff --git a/toke.c b/toke.c
index bc559ae..b76e434 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -5667,10 +5667,10 @@ Perl_yylex(pTHX)
 
                /* Call it a bare word */
 
+               bareword:
                if (PL_hints & HINT_STRICT_SUBS)
                    pl_yylval.opval->op_private |= OPpCONST_STRICT;
                else {
-               bareword:
                    if (lastchar != '-') {
                        if (ckWARN(WARN_RESERVED)) {
                            d = PL_tokenbuf;