I just gave a talk on File Locking Ticks and Traps to the Philadelphia area Linux Users' Group. File locking is an area of frequent misery for Perl programmers, and all the examples in my talk are in Perl, so I expect that the slides will be of general interest. Here they are.

Mark Dominus
Perl Paraphernalia