Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by igelkott (Priest)
on Jan 17, 2009 at 10:32 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://737006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-19 01:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found