Re: [ID 20000915.010] Infinite loop with -MO=Deparse
authorSpider Boardman <spider@orb.nashua.nh.us>
Sat, 16 Sep 2000 16:36:45 +0000 (12:36 -0400)
committerNick Ing-Simmons <nik@tiuk.ti.com>
Sat, 30 Sep 2000 12:52:31 +0000 (12:52 +0000)
Message-Id: <200009162036.QAA11694@Orb.Nashua.NH.US>

p4raw-id: //depot/perl@7102

ext/B/B/Deparse.pm

index d093fbb..5c5c5eb 100644 (file)
@@ -2548,7 +2548,7 @@ sub tr_decode_byte {
        }
        @from = @newfrom;
     }
-    unless ($flags & OPpTRANS_DELETE) {
+    unless ($flags & OPpTRANS_DELETE || !@to) {
        pop @to while $#to and $to[$#to] == $to[$#to -1];
     }
     my($from, $to);