What gets stored is a stringified version of your data.
Since references involve internal program state, it is not
easy to transparently pass references (eg anon hashes)
between programs. See MLDBM for a solution.
Comment on Re (tilly) 1: Limits of DB_File with Btree algorithm