If you use
perlfunc:tie, you can treat DBM files as hashes, as other monks have already mentioned. The way to deal with this depends on exactly what you want to achieve. Read the replies to
Merging hashes and
Merge multiple hashes if you're not already aware of how merging hashes might cause problems. You might find
Hash::Merge useful.