programming-examples/perl/Statement/Mix $_ and foreach statement.pl
2019-11-15 12:59:38 +01:00

8 lines
102 B
Perl

#!/usr/bin/perl -w
use strict;
my @a = qw(hello world good bye);
print "[$_]\n" foreach @a;