in reply to Re^2: different length of a line from linux and windows textfile? ("\r")
in thread different length of a line from linux and windows textfile?
You are right that chomp wont pick up \r on its own, however it absolutely will pick up \r\n and correctly remove both characters, so the only time this would be an issue is if your file is corrupted, or specifically crafted to utilise \r in some way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: different length of a line from linux and windows textfile? ("\r")
by choroba (Cardinal) on Mar 17, 2014 at 17:01 UTC | |
by tye (Sage) on Mar 17, 2014 at 18:02 UTC | |
by fishmonger (Chaplain) on Mar 17, 2014 at 22:00 UTC | |
by tye (Sage) on Mar 17, 2014 at 22:34 UTC | |
by fishmonger (Chaplain) on Mar 17, 2014 at 23:39 UTC | |
by tye (Sage) on Mar 17, 2014 at 23:51 UTC |