foreach my $thisLine (<$inFH>) { .. do something with $thisLine .. }