Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: corrupted print output

by onelesd (Pilgrim)
on Sep 29, 2011 at 22:55 UTC ( #928680=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928680]
help
Chatterbox?
[choroba]: Good morning!

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-05-21 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?