Disk-based data structures (DBM)
December 18, 2000
|
Relational
databases
are powerful, but often large and bulky to
work with. Like trying to parallel park a Ford Explorer, sometimes
you just have too much tool for the job.
|
We've discussed the
interaction between
Perl
and relational databases, courtesy of the
DBI module, in several installments of the Perl You Need to Know.
But suppose you don't want to get tied up with a relational
database and all the supporting software needed, yet you still need
to store a dataset to disk for future use. This month we'll look at
several Perl DBM, or database management, solutions which have much
less overheard than DBI and are a quick way to store and use Perl
data structures to and from disk.
Contents:
The Humble Hash as DB
A Fistful of DBM's
Tie a Yellow Ribbon ...
Climbing the BTree
Getting Deep with Hashes
Conclusion
User Sensitivity 101
The Perl You Need to Know
The Humble Hash as DB
|