your name: jimi mikusi your email address: [EMAIL PROTECTED] your homepage if you have one: /dev/null your preferred user-ID on CPAN: jimbox a short description of what you're planning to contribute:
MLDBM::DynamicDB synopsis- use MLDBM::DynamicDB; @VALID_KEYS = qw(foo bar); $db = MLDBM::DynamicDB->new( 'DB_File', 'FreezeThaw', 'myfile.db'); $db->add_valid_keys(@VALIDKEYS); $entry = $db->newEntry('hashkey'); $entry->addFoo_scalar("this"); $entry->addFoo_scalarref($somescalarref); $entry->addBar_array(one, two, 3); $entry->addBar_arrayref(\@somearray); $db->add($entry); $db->close; # left with a berkely db file whose value fields # are "Frozen" hashes. --------------------------------------------- the module facilitates database prototyping and/or works great for medium to small projects where the data colums may grow or change often. the bulk of the modules work is done by AUTOLOAD which allows any key to be created or added to on the fly as long as the key is deemed valid by @VALIDKEYS (or not if you prefer). works nicely in the perl way of things. for those projects that start from an open session of vi with just #!/usr/bin/perl, this modules lets you create your database as you type. you dont need a lot of pre-planning about the database fields- just have it created for you by an "addKEY" or "setKEY" functions and a hash key will be created by autovivification... but with a little more modularity and structure. thanks.jimbox.