summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2008-01-02 09:08:36 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-06 16:03:13 +0000
commit3a28f3fb1bfd44e4e3dfe6842af867c8c1c9de28 (patch)
treec9a77da0789972574a11b9da07bc9d124e969ec3 /pp_hot.c
parente1f17637d1ade6d468d3aebe31c7b7a17f6fc053 (diff)
downloadperl-3a28f3fb1bfd44e4e3dfe6842af867c8c1c9de28.tar.gz
Re: [perl #49264] say behaves as just print on tied filehandle
Message-ID: <477C3594.9080302@pobox.com> p4raw-id: //depot/perl@32873
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index f5433724f5..7a71b6f79e 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -731,6 +731,11 @@ PP(pp_print)
*MARK = SvTIED_obj((SV*)io, mg);
PUTBACK;
ENTER;
+ if( PL_op->op_type == OP_SAY ) {
+ /* local $\ = "\n" */
+ SAVESPTR(PL_ors_sv);
+ PL_ors_sv = newSVpvs("\n");
+ }
call_method("PRINT", G_SCALAR);
LEAVE;
SPAGAIN;