foreach my $line (@lines1) { @words = split (/\,/, $line); if ($words[6] > 90) { ... }