
yapp
User
Feb 13, 2002, 3:33 AM
Post #2 of 8
(407 views)
|
|
Re: [gregarios] Flock: Unlock before close?
[In reply to]
|
Can't Post
|
|
perl as of version 5.4 doesn't require a unlock before closing. 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!
|