Don't ask to ask, just ask | |
PerlMonks |
Re: Guess A Numberby MrYoya (Monk) |
on Mar 17, 2003 at 19:00 UTC ( [id://243747]=note: print w/replies, xml ) | Need Help?? |
This program looks like a good exercise to learn on. I noticed that at the beginning of the program you initialize $dbm{win} and later use $dbm{won}, resulting in an uninitialized value warning.
Another idea for improvement is to put the input in a loop and only exit the loop upon receiving the proper input. This is one way:
In Section
Code Catacombs
|
|