MLDBM and SDBM_File is a dangerous combination because the former creates long values out of nested data structure and the latter truncates those, resulting in data loss.
In this situation I'd recommend a safer solution. Like DBM::Deep.
Comment on Re^2: SDBM_File and complex data structures