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 (Priest)
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: (14)
As of 2015-07-28 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls