foreach
foreach $color (qw! red green blue yellow !) {
print "I like the color $color.\n";
}
| CPU: Perl, Fall 2005 | Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables | #18 |
foreach $color (qw! red green blue yellow !) {
print "I like the color $color.\n";
}
| Copyright © 2005 Ian Langworth |