in reply to Re: Windows file read
in thread Windows file read
While this did preserve the CRLF at the end of each line, I still ran into the same problem as when I opened the file simply doing:
open IN, '<:raw', $file or die "Unable to open file: $file";This problem is that, despite setting $/ to "\x0D\x0A", the lines with a rogue LF (\x0A) are still split into two lines. I have used a hex editor to make sure that ONLY a LF is present, so I am not misreading the data.
Sadly, this puts me right back to the beginning problem. I appreciate all your assistance so far ikegami. I now know about layering the file modes, however unfortunately my line break problem still exists.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Windows file read
by ikegami (Patriarch) on May 01, 2006 at 17:15 UTC | |
|
Re^3: Windows file read
by thedoe (Monk) on May 01, 2006 at 19:02 UTC |