in reply to Chomp doesn't work
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Chomp doesn't work
by M15U (Acolyte) on Mar 25, 2013 at 09:22 UTC | |
by daxim (Curate) on Mar 25, 2013 at 12:31 UTC | |
by jwkrahn (Abbot) on Mar 25, 2013 at 18:53 UTC | |
by choroba (Cardinal) on Mar 25, 2013 at 23:49 UTC |