I've never used it, but perl contains support for Berkeley DB in stdlib since forever. But sqlite maps to perl just fine.