while(my $line = ) { #Do whatever processing you want with $line }