tomazos has asked for the wisdom of the Perl Monks concerning the following question:
I've opened and am using read FH, $nextchr, 1 to read one character at a time from a data file.
I've looked at the data file from within a hex editor and the lines are definately termined with 0x0D followed by 0x0A - but when the read gets to the relevant place it only reads one 0x0A and there is no 0x0D to be seen.
Is there some kind of weirdness to do with how the machinery underneath read goes about dealing with carriage returns and new lines on different platforms?
-Andrew Tomazos <andrew@tomazos.com>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: read and EOL weirdness on win32
by eyepopslikeamosquito (Archbishop) on Jul 28, 2004 at 09:23 UTC | |
|
Re: read and EOL weirdness on win32
by BUU (Prior) on Jul 28, 2004 at 10:10 UTC |