CPU: Perl, Fall 2005 Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables #19

foreach Iterator Variable

@names = qw( Zim Gir Gaz Dib );
foreach $name (@names) {
    $name .= " is the name\n";
}
print "@names";
continued...
Copyright © 2005 Ian Langworth