Perl: foreach() loops
foreach() loops
foreach() loops iterate through a list (array)
A temporary variable holds a value in the list each time through the list
foreach $name (@namelist) {
print "A name in the list: $name\n";
foreach $name (reverse(@namelist)) {...}
foreach $name (qw(homer marge bart lisa maggie)) {...}