##
print FILE "$_\n" for @lines;
# or, to be more verbose
foreach my $line (@lines) {
print FILE "$line\n";
}
####
print OUTPUT_FILE while ;
# or, to be more verbose
while ($line = ) {
# manipulation of $line goes here.
print OUTPUT_FILE $line;
}