print OUTPUT_FILE while ; # or, to be more verbose while ($line = ) { # manipulation of $line goes here. print OUTPUT_FILE $line; }