http://www.perlmonks.org?node_id=342445


in reply to Re: File locking and Storable
in thread File locking and Storable

As I pointed out here, you shouldn't use LOCK_UN, just close the filehandle to the lockfile (in this case it's the data file too).

Also, you should check the return value of close calls.


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.