in reply to alter file without changing mtime?

The final close is likely flushing a buffer, which is writing a bit more to the file. Close the filehandle, then issue the utime().

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: alter file without changing mtime?

Replies are listed 'Best First'.
Re: •Re: alter file without changing mtime?
by Anonymous Monk on Aug 14, 2003 at 14:05 UTC
    nice one man, worked perfectly!