All subroutines in Perl have parameters and return a result, the value of the last expression before the return. Undeclared names refer to names in the outer program (global). The subroutine is called with its parameters, for example good_word($name,$guess); |