HA! That scoring system is pretty cool, millenium! I like it! The script works pretty good, man! I see what you did for the default condition. Thanks. The script does start off properly with the "Let's Play Hangman" welcome screen, however, there is one little problem. If you then click on Start Game, you get:
Congratulations, your word was:
Your score was 0 of a possible 0 points.
"Play Again" button
Once again, if you then click the button the game finally starts and works perfectly. This code is very different and I will take a look to see if I can figure it out, but do you happen to know why it's doing that? It's a very similar problem to before. It seems to me that it's printing the "win" subroutine after the "enter" subroutine, but before the actual game is played. I think I see why, and have tried a few things to no avail.
My brain is doing a little better... LOL. We'll see how long it lasts today! I already tried removing the &win() from the first line of the if ($playing) statement, but that only gives me a compilation error. I've also replaced &win() with several other things to see what would happen. Nothing's working. Argh... No wonder I'm a hardware guy!
Thanks!
Chris
PS. I posted it at a new URL of
http://www.bartlett-family.net/cgi-bin/hangman_new.cgi (underscore between "hangman" and "new") in case you want to see it in action!