in reply to Re: in place edit - how to do
in thread in place edit - how to do

The diagnostic message is wrong in this case. Windows is quite able to read from deleted (but still opened) files. It just can't can't create a new file with the same name until all handles to it are closed. The solution is appropriate, though.

Replies are listed 'Best First'.
Re^3: in place edit - how to do
by FunkyMonk (Bishop) on Jan 14, 2009 at 23:11 UTC
    Patches welcome :-)

      Can't. Like I said, it's not supported by the OS, but for a different reason than the one mentioned in the diagnostic message.

      It would be possible to do using a temporary file or by slurping the file into memory. This former would also allow undoing the edit in case of error. This has been proposed on the p5p and has gained some traction. The discussion was tracked in RT 1154

      Update: Oh! I just realized you meant patching the message.