Re: [PATCH] turn $a.=<F> into an RCATLINE
authorAbhijit Menon-Sen <ams@wiw.org>
Mon, 17 Sep 2001 17:44:12 +0000 (23:14 +0530)
committerAbhijit Menon-Sen <ams@wiw.org>
Mon, 17 Sep 2001 11:21:40 +0000 (11:21 +0000)
Message-Id: <20010917174412.B7058@lustre.dyn.wiw.org>

p4raw-id: //depot/perl@12047

op.c

diff --git a/op.c b/op.c
index 1c7eb15..ea5d922 100644 (file)
--- a/op.c
+++ b/op.c
@@ -6940,10 +6940,12 @@ Perl_peep(pTHX_ register OP *o)
                    && o->op_next->op_next->op_type == OP_CONCAT
                    && (o->op_next->op_next->op_flags & OPf_STACKED))
            {
-               /* Turn "$a .= <FH>" into an OP_RCATLINE. AMS 20010811 */
-               o->op_next->op_type   = OP_RCATLINE;
-               o->op_next->op_flags |= OPf_STACKED;
+               /* Turn "$a .= <FH>" into an OP_RCATLINE. AMS 20010917 */
+               o->op_type   = OP_RCATLINE;
+               o->op_flags |= OPf_STACKED;
+               o->op_ppaddr = PL_ppaddr[OP_RCATLINE];
                op_null(o->op_next->op_next);
+               op_null(o->op_next);
            }
 
            o->op_seq = PL_op_seqmax++;