in reply to binmode layer and seek
The :crlf IO layer adds a cr for each lf, and strip it again when you read it.
So a "raw" file handle without such a layer will read a different result, thus producing a different MD5 sum.
If you want to build checksums, always read the data as binary, without any additional IO layers.
BT seek is totally unrelated here - if you close the file, and open again with the :crlf IO layer you'll get the same results as with seek(0,0).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: binmode layer and seek
by ftumsh (Scribe) on Jul 08, 2008 at 13:31 UTC | |
by moritz (Cardinal) on Jul 08, 2008 at 13:46 UTC |