I found an answer that I thought I would share. I am using ActivePerl on Windows server 2003. ActivePerl translates 0A as CR\LF. The print statement was causing the issue. To stop this, I added binmode to my file handle:
open(OUTPUT,">$outputFileName"); binmode OUTPUT; It works great now. ---- Tim Lewis <twle...@sc.rr.com> wrote: > I am attempting to add a line feed to the end of each line. When I do this, a > carriage return is also added. My code lines are: > > $currentLine = $currentLine . "\x{0A}"; > $finalOutput = $finalOutput . $currentLine; > > There has to be a way to do this. Also, is there a better way to > concatentate? > > Thanks for any suggestions on this. > > Tim > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/