Next Program Repair Shop 254

Making Two Passes

      for (@chain) { 
        if ($ct_scanout ) {
          $_->[$i] =~ s/0/L/g; 
          $_->[$i] =~ s/1/H/g;
        } elsif ($ct_scanout==0) {
          $_->[$i] =~ s/X/0/g;
        }
      }
      my @chars = map $_->[$i], @chain;
      my @chars;
      for (@chain) { 
        if ($ct_scanout ) {
          $_->[$i] =~ s/0/L/g; 
          $_->[$i] =~ s/1/H/g;
        } elsif ($ct_scanout == 0) {
          $_->[$i] =~ s/X/0/g;
        }
        push @chars, $_->[$i];
      }


Next Copyright © 2002 M. J. Dominus