![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Is this a good way to implement a Battleship game?by nobull (Friar) |
on Apr 01, 2006 at 12:20 UTC ( #540630=note: print w/replies, xml ) | Need Help?? |
It has already been pointed out that using eq to test the equality of numbers is wasteful affected.
I should also add that using gt to compare numbers will not do what you probably intended because 3 gt 20 is true.
In Section
Seekers of Perl Wisdom
|
|