in reply to Can I empty a hash value?
and since you are using a hash you can do this ...%squares = ( a1 => $a1, a2 => $a2, a3 => $a3, b1 => $b1, b2 => $b2, b3 => $b3, c1 => $c1, c2 => $c2, c3 => $c3 );
# makes the moved piece blank sub make_blank() { $squares{$response} = " "; }
| Plankton: 1% Evil, 99% Hot Gas. |
|
|---|