in reply to Re^2: Writing a UNIX text line - the end character challenge
in thread Writing a UNIX text line - the end character challenge
What you probably want to do is read the file NOT in binmode. If there are CRLFs, they'll get compacted and chomped as normal.
Writing out, you want to put it in binmode so you get exactly the bytes you specify, and don't have your line endings re-expanded for you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Writing a UNIX text line - the end character challenge
by merrymonk (Hermit) on Aug 11, 2010 at 14:04 UTC |