in reply to read and EOL weirdness on win32

On Windows, to read files in binary mode, immediately after opening the file (with open or sysopen), you must use the binmode functon. For example:
open(FH, $fname) or die "error: open '$fname': $!"; binmode(FH); # ...