programming-examples/perl/Statement/Mix $_ and foreach statement.pl

8 lines
102 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
use strict;
my @a = qw(hello world good bye);
print "[$_]\n" foreach @a;