in reply to file size test on 5.005_3?

Well, it very well may be that you have stumbled on a bug in Perl. However, 5.005_03 was released more than 4 years ago, and we have had 2 major releases, 2 minor releases, and a whole battery of development releases since.

Please confirm whether you have the same problems with 5.8.1. If not, it was a bug in Perl, and it was fixed.

Abigail

Replies are listed 'Best First'.
Re: Re: file size test on 5.005_3?
by djbiv (Scribe) on Oct 15, 2003 at 21:29 UTC
    I don't have this problem in 5.8.0, and unfortantly cannot upgrade the AIX box at this time... Are there any other ways to retreive the file size other then "-s" and stat ???
    UPDATE: "stat" actually returns the same results as -s on 5.005_3
      It's a strange environment you work in, if you can't replace buggy software where to bug make your programs fail. I wonder, if your monitor breaks, it won't be replaced either?

      Anyway, if you can't use -s or stat, you could always open the file, seek to the end, and use tell(). Of course, that might be broken too.

      Abigail