diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-03-26 13:51:30 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-03-26 13:51:30 +0000 |
commit | 3ef1310e8095f478a1ddff6a842410f27b75e186 (patch) | |
tree | 6c7359fc9648dc0b0f913c77429d040632cc547b /toke.c | |
parent | 4d6334bc3f221cf02f086af5f139b424145c2b32 (diff) | |
download | perl-3ef1310e8095f478a1ddff6a842410f27b75e186.tar.gz |
say() should parse exactly like print()
p4raw-id: //depot/perl@30760
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2646,7 +2646,8 @@ S_intuit_method(pTHX_ char *start, GV *gv, CV *cv) */ if (*start == '$') { - if (gv || PL_last_lop_op == OP_PRINT || isUPPER(*PL_tokenbuf)) + if (gv || PL_last_lop_op == OP_PRINT || PL_last_lop_op == OP_SAY || + isUPPER(*PL_tokenbuf)) return 0; #ifdef PERL_MAD len = start - SvPVX(PL_linestr); |