in reply to Perl (Berkeley DB)

It sounds like you might want the BerkeleyDB module. Read the manpage for examples of opening and reading from such a file.