This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH: TODO Tests] Re: [perl #53806] No complain about bareword
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 20 May 2008 09:45:19 +0000 (11:45 +0200)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Tue, 20 May 2008 08:04:05 +0000 (08:04 +0000)
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;