in reply to Re: Do the File::Stat values Update While a File is Being Written?
in thread Do the File::Stat values Update While a File is Being Written?

If you check with a higher frequency than the buffer is flushed, you will get wrong results and will never be certain when the file is "finished".

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re^2: Do the File::Stat values Update While a File is Being Written?

Replies are listed 'Best First'.
Re^3: Do the File::Stat values Update While a File is Being Written?
by Joost (Canon) on Jul 14, 2008 at 21:11 UTC
      For sure it is slower, it is the price you pay for not having to remember what each slot in the returned list of stat means ...

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      Yes, but TIMTOWTDI ;-)