From: Abhijit Menon-Sen Date: Sat, 11 Aug 2001 16:31:04 +0000 (+0530) Subject: turn $a.= into an RCATLINE X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=89de29047dd63c42d0e0d6b1cab1eea82aeda08d;p=p5sagit%2Fp5-mst-13.2.git turn $a.= into an RCATLINE Message-ID: <20010811163104.Q526@lustre.dyn.wiw.org> p4raw-id: //depot/perl@11634 --- diff --git a/op.c b/op.c index 52fd74d..b9b7869 100644 --- a/op.c +++ b/op.c @@ -6882,6 +6882,15 @@ Perl_peep(pTHX_ register OP *o) SvPV_nolen(sv)); } } + else if (o->op_next->op_type == OP_READLINE + && o->op_next->op_next->op_type == OP_CONCAT + && (o->op_next->op_next->op_flags & OPf_STACKED)) + { + /* Turn "$a .= " into an OP_RCATLINE. AMS 20010811 */ + o->op_next->op_type = OP_RCATLINE; + o->op_next->op_flags |= OPf_STACKED; + op_null(o->op_next->op_next); + } o->op_seq = PL_op_seqmax++; break;