in reply to Re^2: corrupted print output
in thread corrupted print output

But does Perl behave the same way when $\ is set (the default is undef)? I don't have a Windows machine to test on, but I would assume since he told Perl the newline should be a "\n" that Perl would respect his wishes.

One thing OP: are you viewing your output file in Notepad? If so, try Wordpad and see how it looks.

Replies are listed 'Best First'.
Re^4: corrupted print output
by weston2010 (Initiate) on Sep 30, 2011 at 14:26 UTC
    Thanks for everyone's reponse. The portion shown above is taken from notepad. I also transfered the file to a unix box and got the last line of the file (it was too big to open), it was a continous line. The top portion showed ^M at the end of each line.