Next Program Repair Shop 151

Avoid Special Cases

   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 $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