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

With this test, both the OS and Perl agree that the file is 26755 bytes.

Writing "x\r\n" produces 107020 bytes, which the OS and Perl agree on.

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

Replies are listed 'Best First'.
Re^3: Filesize (-s) is consistenly reporting too small of size in Win32
by ikegami (Patriarch) on Jan 17, 2009 at 17:05 UTC
    heh, You mean writing "x\r\r\n" (by printing "x\r\n"). 107020 / 26755 = 4.

      Hah, yeah... I tried just "\n" as well. In any case, I just wanted to make sure it wasn't a line-ending problem, which it didn't appear to be based on the tests.


      If you want to do evil, science provides the most powerful weapons to do evil; but equally, if you want to do good, science puts into your hands the most powerful tools to do so.
      - Richard Dawkins