Next Program Repair Shop 153

Special Cases

     for my $row (0..2) {
       for my $column (0..2) {
         if ($squares->[$row][$column] eq "") {
           print_cell($squares, $page, $column, $row);
         } else {
           print ("<td>" . $squares->[$row][$column] . "</td>\n");
         } 
       }
       print ("</tr><tr>\n") unless $row == 2;
     }
     for my $row (0..2) {
       print "<tr>";
       for my $column (0..2) {
         if ($squares->[$row][$column] eq "") {
           print_cell($squares, $page, $column, $row);
         } else {
           print ("<td>" . $squares->[$row][$column] . "</td>\n");
         } 
       }
       print "</tr>\n";
     }


Next Copyright © 2002 M. J. Dominus