programming-examples/perl/Statement/The foreach Loop.pl

11 lines
135 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#Format:
#foreach VARIABLE (ARRAY)
#{BLOCK}
#!/usr/bin/perl
foreach $pal ('A', 'B', 'H', 'P') {
print "Hi $pal!\n";
}