Just a guess but it might be counting the \r\n as a single line-ending. Is your test file 2179 lines long?
Seems like you could treat all files as binary and skip the automatic line-ending conversion (see binmode).
In reply to Re: Filesize (-s) is consistenly reporting too small of size in Win32
by igelkott
in thread Filesize (-s) is consistenly reporting too small of size in Win32
by wilsond
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |