In this seventh part of a nine-part article series on the variety of control structures Perl programmers can use to set up the way a program gets to where it’s going, we’ll continue our study of loops with the for loop and the foreach loop. This article is excerpted from chapter three of the book Beginning Perl, Second Edition, written by James Lee (Apress; ISBN: 159059391X).

More: continued here