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.
In reply to Re^2: Windows file read
by thedoe
in thread Windows file read
by thedoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |