while (my $line = ) { # Do something with the $line }