programming-examples/perl/Statement/The foreach Loop.pl
2019-11-15 12:59:38 +01:00

11 lines
135 B
Perl

#Format:
#foreach VARIABLE (ARRAY)
#{BLOCK}
#!/usr/bin/perl
foreach $pal ('A', 'B', 'H', 'P') {
print "Hi $pal!\n";
}