in reply to Re: Check for "unix2dos" (CRLF) in binary files
in thread Check for "unix2dos" (CRLF) in binary files
Apart from that, using a fixed-length read certainly is a good idea, for cases when files are really big and 0x0A's happen to be really few and far between (or non-existent). And your use of "$_ = chop" to cover the buffer edges is a nice trick. Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Check for "unix2dos" (CRLF) in binary files
by Aristotle (Chancellor) on Sep 17, 2004 at 07:55 UTC | |
|
Re^3: Check for "unix2dos" (CRLF) in binary files
by jfroebe (Parson) on Sep 23, 2004 at 16:16 UTC | |
by graff (Chancellor) on Sep 24, 2004 at 02:33 UTC |