summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-26 13:51:30 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-26 13:51:30 +0000
commit3ef1310e8095f478a1ddff6a842410f27b75e186 (patch)
tree6c7359fc9648dc0b0f913c77429d040632cc547b /toke.c
parent4d6334bc3f221cf02f086af5f139b424145c2b32 (diff)
downloadperl-3ef1310e8095f478a1ddff6a842410f27b75e186.tar.gz
say() should parse exactly like print()
p4raw-id: //depot/perl@30760
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index e4a52e3fdf..935a32a6be 100644
--- a/toke.c
+++ b/toke.c
@@ -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);