http://qs1969.pair.com?node_id=242080


in reply to File Locking Tricks and Traps

On slide 6 this line:
open SELF, "< $0" or die ...;
Should be:
open SELF, "+< $0" or die ...;
Due to the fact that some OS's won't allow an exclusive lock on a file that has been opened for read only.

-Nitrox