in reply to Re^2: setup of a small perl game
in thread setup of a small perl game
The quick fix would be to insert a last after the "Congratulations" line, like this:
but IMHO I would advice you to follow the structure I gave you more closely; I think you will find that your script is clearer, and more easily modified and debugged if you actually implement functions like check_answer(), etc., that I used in the "wishfulthinking code". The more your code looks like pseudocode, the clearer it will be.{ print "Congratulations! The scrambled word was $word.\n\n"; last; }
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: setup of a small perl game
by Anonymous Monk on Apr 12, 2005 at 04:10 UTC | |
by tlm (Prior) on Apr 12, 2005 at 04:17 UTC | |
by sulfericacid (Deacon) on Apr 12, 2005 at 05:46 UTC | |
by tlm (Prior) on Apr 12, 2005 at 09:42 UTC |