Adrian M. Enache [Sat, 21 Jun 2003 03:19:31 +0000 (06:19 +0300)]
Message-ID: <
20030621001931.GB1255@ratsnest.hole>
p4raw-id: //depot/perl@19841
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;
}
return $ok;
}
-print "1..18\n";
+print "1..19\n";
($a, $b, $c) = qw(foo bar);
ok(beq($l, "\x{fe}"), "right not changed after concat b+u");
ok(beq($r, "\x{101}"), "left not changed after concat b+u");
}
+
+{
+ my $a; ($a .= 5) . 6;
+ ok($a == 5, "($a .= 5) . 6 - present since 5.000");
+}