* Vincent Lefevre wrote on Fri, Aug 08, 2008 at 11:01:49AM CEST:
> On 2008-08-08 11:23:28 +0300, Niko Tyni wrote:
> > 
> > The documentation specifically says move() will copy the file if rename()
> > fails, and IMO it's clearly the responsibility of the caller to make
> > sure the file is closed or at least flushed.

> Well, this is not obvious. Even without using lsof, if Perl has
> a mapping between filenames and file handles in its own internal
> structures, this could be done.
> 
> Perhaps it should be documented (e.g. in NOTES) that the caller must
> close the file or flush it when it is copied, in particular via move.

But really this isn't a limitation of the perl module, but of the
underlying file system and/or operating system.  I guess on w32 the
move will outright fail if the file is open.

Cheers,
Ralf



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to