in reply to Re: corrupted print output
in thread corrupted print output
\n is meant to be portable in Perl. Perl should make the right decision about what the underlying ascii value of \n should be. The sticky point for me has been in processing text files on one OS that have been generated on another OS that uses a different new line ascii combination.
I have run into an issue with chomp in this case. String::Util offers a replacement for this case in fullchomp, though it's simple enough to write one yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: corrupted print output
by onelesd (Pilgrim) on Sep 29, 2011 at 22:55 UTC | |
by weston2010 (Initiate) on Sep 30, 2011 at 14:26 UTC |