Basic HTML version of Foils prepared 3 Sept 1997

Foil 11 Subroutines

From Introduction to Perl Jackson State University Mississippi -- Fall Semester 97. by Nancy J. McCracken


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);



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Sep 6 1997