in reply to Re^5: Resetting variables
in thread Resetting variables

If you look at my reply here I posted my entire script. $all_occurences is being populated in the check_guess() sub. It keeps a list of index values in the word the player is trying to guess so that when I am printing out the word, I print all of the guesed letters.