summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorAdrian M. Enache <enache@rdslink.ro>2003-06-21 06:19:31 +0300
committerJarkko Hietaniemi <jhi@iki.fi>2003-06-22 16:35:33 +0000
commit0165acc7988347eaec71b2c2d2a9764893f0c240 (patch)
treeb4029237d15b8076708dea4f2338bb3dc1cd4462 /op.c
parentb3c0ec7c1220f243dffb147d13728e1cc44420cc (diff)
downloadperl-0165acc7988347eaec71b2c2d2a9764893f0c240.tar.gz
Re: Is it a Bug? ($c .= "5") . "6"
Message-ID: <20030621001931.GB1255@ratsnest.hole> p4raw-id: //depot/perl@19841
Diffstat (limited to 'op.c')
-rw-r--r--op.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/op.c b/op.c
index 2eadb102fb..947b5f3137 100644
--- a/op.c
+++ b/op.c
@@ -4701,8 +4701,9 @@ Perl_ck_bitop(pTHX_ OP *o)
OP *
Perl_ck_concat(pTHX_ OP *o)
{
- if (cUNOPo->op_first->op_type == OP_CONCAT)
- o->op_flags |= OPf_STACKED;
+ OP *kid = cUNOPo->op_first;
+ if (kid->op_type == OP_CONCAT && !(kUNOP->op_first->op_flags & OPf_MOD))
+ o->op_flags |= OPf_STACKED;
return o;
}