John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
Under Linix, I'm seeing \r's left on the line after I chomp them. Since files may come from HTTP or other network stuff that uses \r\n naturally, I should handle it.
How do I do a chomp saying "remove any style of line ending from this line, whatever it may be"?
Thanks
John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: \r\n at end of line (\s)
by tye (Sage) on Apr 19, 2011 at 02:36 UTC | |
by John M. Dlugosz (Monsignor) on Apr 19, 2011 at 03:30 UTC | |
by flexvault (Monsignor) on Apr 19, 2011 at 12:21 UTC | |
by tye (Sage) on Apr 19, 2011 at 17:25 UTC | |
by flexvault (Monsignor) on Apr 21, 2011 at 13:24 UTC | |
|
Re: \r\n at end of line
by Anonymous Monk on Apr 19, 2011 at 02:17 UTC | |
|
Re: \r\n at end of line
by John M. Dlugosz (Monsignor) on Apr 19, 2011 at 03:33 UTC | |
|
Re: \r\n at end of line
by educated_foo (Vicar) on Apr 19, 2011 at 00:43 UTC | |
by ikegami (Patriarch) on Apr 19, 2011 at 03:55 UTC |