From 89de29047dd63c42d0e0d6b1cab1eea82aeda08d Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Sat, 11 Aug 2001 22:01:04 +0530 Subject: [PATCH] turn $a.= into an RCATLINE Message-ID: <20010811163104.Q526@lustre.dyn.wiw.org> p4raw-id: //depot/perl@11634 --- op.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.7.4