Search code examples
perlserializationdbm

Perl DBM vs. Storable


for my current project i need to store a little database on disk, that i read once my program runs and write it once.

I have looked into perls DBM functionality and from what I understand it provides merely a hash that is stored on disk with every read and write going directly to disk.

My question is: Could I not simply use Storable or any of the related modules to achieve the same (a persistent hash) with far less File I/O overhead? (The hashes will never be to large to fit into memory easily)

Regards Nick


Solution

  • SQLite is fast becoming the standard for simple on-disk databases. And in Perl you can just use DBD::SQLite and you're good to go.