in reply to text files from mac
The actual newlines in your output come not from the original file but from your printing "\n" in the while loop, since \n is the "logical newline" for your system, in your case Windows, and thus generates the correct \012\015 sequence.
PS If I am correct about your using Mac OS X files then simply changing $/ to "\015" (untested and not sure if I have the syntax right) should solve your problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: text files from mac
by Anonymous Monk on Apr 20, 2005 at 12:55 UTC |