in reply to
Two loops
foreach ($lines)
doesn't make sense. try
perl -e 'my $lines = 5; foreach ($lines) { print "foo\n"}'
[download]
and watch 'foo' being printed exactly once. maybe you wanted to say
foreach (@data)
?
language is a virus from outer space.
Comment on
Re: Two loops
Select
or
Download
Code
In Section
Seekers of Perl Wisdom