No such thing as a small change | |
PerlMonks |
Re^4: Why can't some of my modules do log output to a file?by Marshall (Canon) |
on Oct 10, 2022 at 21:57 UTC ( [id://11147331]=note: print w/replies, xml ) | Need Help?? |
Instead of closing the file handle, you could just release the lock. flock $fh, LOCK_UN or die "flock can't release lock $!";
Note from the docs: "To avoid the possibility of miscoordination, Perl now flushes FILEHANDLE before locking or unlocking it."
In Section
Seekers of Perl Wisdom
|
|