diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-01-11 17:12:08 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-01-11 17:12:08 +0000 |
commit | 01a57ef76e2bbb4fc89bd29489dbb04b936a94c2 (patch) | |
tree | 8eb36027899f96173ddc85751cda6c68d89734f6 /toke.c | |
parent | 4c31e473d8698ee4d43e3e2b98feb4fae2cdcc94 (diff) | |
download | perl-01a57ef76e2bbb4fc89bd29489dbb04b936a94c2.tar.gz |
Fix bug [perl #41234] : the tokenizer understands "=cute"
or other words that begin with "cut" as synonyms for "=cut"
p4raw-id: //depot/perl@29761
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3674,7 +3674,7 @@ Perl_yylex(pTHX) if (PL_madskills) sv_catsv(PL_thiswhite, PL_linestr); #endif - if (*s == '=' && strnEQ(s, "=cut", 4)) { + if (*s == '=' && strnEQ(s, "=cut", 4) && !isALPHA(s[4])) { sv_setpvn(PL_linestr, "", 0); PL_oldoldbufptr = PL_oldbufptr = s = PL_linestart = SvPVX(PL_linestr); PL_bufend = SvPVX(PL_linestr) + SvCUR(PL_linestr); |