Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Filesize (-s) is consistenly reporting too small of size in Win32by igelkott (Priest) |
on Jan 17, 2009 at 10:32 UTC ( [id://737006]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|