Feb 13, 2002, 3:33 AM
Post #2 of 8
perl as of version 5.4 doesn't require a unlock before closing.
Re: [gregarios] Flock: Unlock before close?
[In reply to]
I thought that the close() function also flushes all buffers. If that's true for filehandles, It means that there could still be data written to the file when the close() function is called. So for that case, It would be better not to unlock the file before closing it.
Yet Another Perl Programmer
~~> [url=http://www.codingdomain.com]www.codingdomain.com <~~
More then 3500 X-Forum [url=http://www.codingdomain.com/cgi-perl/downloads/x-forum]Downloads!