Next Program Repair Shop 143

Use Smaller Scope

    13     my (..., $x, ...);
   214     foreach $x(0..2) {
   215        if ($squares->[0][$x] eq "?") {
   216           print_cell($squares, $page, $x, "0");
   217        }else {
   218           print ("<td>" . $squares->[0][$x] . "</td>\n");
   219        } 
   220     }
           foreach my $x(0..2) {
              if ($squares->[0][$x] eq "?") {
                 print_cell($squares, $page, $x, "0");
              }else {
                 print ("<td>" . $squares->[0][$x] . "</td>\n");
              } 
           }


Next Copyright © 2002 M. J. Dominus