Next Program Repair Shop 163

Don't confuse internal and external representations of data

    63     $squares = [
    64                 ['?', '?', '?'],
           ...
   214     foreach $x(0..2) {
   215        if ($squares->[0][$x] eq "?") {
           ...
     for my $row (0..2) {
       for my $col (0..2) {
          print ("<td align=center>"
                . ($squares->[$row][$col] || "&nbsp;") 
                . "</td>\n");
       }
       print ("</tr><tr valign=middle>\n") unless $row == 2;
     }


Next Copyright © 2002 M. J. Dominus