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!
In reply to Re^2: Check for "unix2dos" (CRLF) in binary files
by graff
in thread Check for "unix2dos" (CRLF) in binary files
by graff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |