Write another program that just reads the dictionary file and check if it is ok, or create a new one with the words you want. My guess is that there is something wrong with the file because your program worked just fine with me.
$ perl hangman.pl -------- Your Guess: I -------- O Your Guess: P P------- O Your Guess: a P------- O / Your Guess: s P------- O /| Your Guess: d P------- O /|\ Your Guess: f P------- O /|\ / Your Guess: g O /|\ / \ Sorry, the word was Printer .
update: You should notice that the label Outer is not case insensitive.
In reply to Re: Assigning a file to an Array.
by olus
in thread Assigning a file to an Array.
by elle45purple
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |