Richard's Perl Step 08, 09
Functions



- I used "Sams Teach Yourself Perl in 24 Hours" - 3rd Edition as a reference for this page
- Run in windows DOS prompt
perl thisprogram.pl

perl c:\......\thisprogram.pl

 

Examples following Perl 24 hours book, Hour 8, 9:

eg018.pl (text only) - functions => subroutines in Perl

eg019.pl (text only) - use strict

eg020.pl (text only) - searching scalars

eg34.pl (text only) - pass multiple parameters to subroutine, return 1 value

eg35.pl (text only) - return multiple values from subroutine

eg36.pl (text only) - return multiple arrays from subroutine