in reply to Perl Script New Line problem

Simple. Change
print $out_fh $line ; #No need to chomp - we print the "\n"
to
print $out_fh $line."\n" ; # we add a "\n"
HTH, Rata