$\ = $endofline; print OUTFILE $processed_string; # Appends the wanted end of line correctly