in reply to Data store and threads
Google for many previous examples of code for DBM::Deep.
Check out the pod at DBM::Deep and search for Locking