Think about Loose Coupling | |
PerlMonks |
Re^3: File lock demoby davido (Cardinal) |
on Apr 21, 2021 at 20:35 UTC ( [id://11131545]=note: print w/replies, xml ) | Need Help?? |
Empty lock files certainly aren't wrong either. MJD's talk discusses how many problems can be solved by using a lockfile that is different from the target working files. And that's what you're doing. I mostly just didn't want someone seeing open my $fh, '>', ...; and then flock, and think this idiom will translate well to locking an output file that they intend to write to. Dave
In Section
Meditations
|
|