good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Chomp doesn't workby davido (Cardinal) |
on Mar 25, 2013 at 09:04 UTC ( [id://1025259]=note: print w/replies, xml ) | Need Help?? |
chomp strips from its parameter list the contents of $/, which is typically "\n". However, there are at least five Unicode code points that produce a newline (see perluniprops) Also, "\n" means different things on different machines; a file saved on a Windows system will have a different version of "\n" than a file saved on a Unix/Linux system. This could be getting in your way too. Dave
In Section
Seekers of Perl Wisdom
|
|