in reply to Should I lock this DBM File?

I'm not sure what you're gaining at all by having everyone use a LOCK_SH. If you change LOCK_SH to LOCK_EX, I think we have room for discussion.

"I'll have what she's having". That's all you've said, and the answer is always yes.

-- Randal L. Schwartz, Perl hacker