Problems? Is your data what you think it is? | |
PerlMonks |
Re: how to escape new line in a stringby betmatt (Scribe) |
on Jun 20, 2019 at 09:17 UTC ( [id://11101613]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|