in reply to Print array values
to convert the DATA1 / DATA2 to lowercase is left as an exercise for the reader :-)use strict; use warnings; my @filenames = qw{filename1 filename2 filename3}; my @datas =qw{DATA1 DATA2}; foreach my $filename (@filenames) { foreach my $data (@datas) { print "grep -c $data $filename \n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print array values
by cdarke (Prior) on Aug 10, 2009 at 11:47 UTC |