MJD Perl Course - 15th of May 2003 |
"How do I delete a line from a file?" Lightweight data storage techniquesMany programs need cheap, convenient access to small amounts of data. There are two commonly used solutions: Flat text files and DBM files. This class will look at these in detail. Whether you're looking for a good solution for storage of your own data, or you have to deal with data stored in one of these formats by another program, this class will equip you with valuable tools for solving your problems.
In the first half, we'll look at techniques for managing flat text
databases and the systems programming that underlies these. We'll
examine the tradeoffs of variable vs. fixed-length records and sorted
vs. unsorted files. We'll take a detailed look at C
The second half will be an overview of Perl's 'DBM' feature, including
a comparison of the standard DBM modules. We'll see several extremely
useful but little-known features of DB_File, the only one of these
standard modules that doesn't have serious defects.
|