next up previous contents index
Next: Erase Guess Up: Hangman Previous: Run subroutines   Contents   Index

Keep track of correct guesses

We'll need an array - @word_so_far - to hold the correct guesses.

    sub word_so_far{
        foreach $l (@letters) { 
            $word_so_far[$i] = "_"; 
            $i++;
        }       
    }



Tom Hunt 2002-06-09