Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: how to escape new line in a string

by betmatt (Scribe)
on Jun 20, 2019 at 09:17 UTC ( [id://11101613]=note: print w/replies, xml ) Need Help??


in reply to how to escape new line in a string

Hi, You have substituted a new line character (\n) with nothing. Then why do you need to chomp? Chomp is set to the new line character by default.


Update________________________

It might be worth mentioning if the files are being transferred across from Windows to Linux. There is sometimes extra hidden characters in that situation.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-25 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found