Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Filesize (-s) is consistenly reporting too small of size in Win32

by igelkott (Priest)
on Jan 17, 2009 at 10:32 UTC ( #737006=note: print w/replies, xml ) Need Help??


in reply to Filesize (-s) is consistenly reporting too small of size in Win32

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).

  • Comment on Re: Filesize (-s) is consistenly reporting too small of size in Win32

Replies are listed 'Best First'.
Re^2: Filesize (-s) is consistenly reporting too small of size in Win32
by Anonymous Monk on Jan 17, 2009 at 10:34 UTC
    No, not possible. -s/stat doesn't do any counting, it consults the filesystem.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://737006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2021-04-17 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?