Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: corrupted print output

by onelesd (Pilgrim)
on Sep 29, 2011 at 22:55 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://928680]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found