in reply to converting from some database format do Berkeley DB.

salutations, we have already tried this technique of passing the CSV data to a BerkeleyDB database by $db->db_put(), but it gets too slow. anyway, we found a very good way to convert from TXT to BerkeleyDB: we convert it to Berkeley DB by using the command "db-load" at command-line. for this, besides the BerkeleyDB module of Perl, we also installed the Windows installer of BerkeleyDB at http://www.oracle.com/technology/software/products/berkeley-db/index.html. then, we discovered that the command (in the command-line)
db_load -c duplicates=1 -T -t hash -f dict.txt dict.db
converts "dict.txt" (with keys and values separated by a newline character, and each pair of lines being a record) to the BerkeleyDB database "dict.db", allowing duplicate keys. this solution turned out to work great. thank you for all the help.