Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Incorrectly adding a newline character

by McA (Deacon)
on Oct 08, 2013 at 05:00 UTC ( #1057358=note: print w/ replies, xml ) Need Help??


in reply to Incorrectly adding a newline character

Hi,

if you're on UNIX and have a text file which lines ends with \r\n the chomp only throws the \n away, but not \r. Have a look at your file with hexdump -C.

Regards
McA


Comment on Re: Incorrectly adding a newline character
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057358]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2014-07-23 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (135 votes), past polls