J-Soft
Now With Sprinkles!!!
Back to Homepage
Web based programs I have written
Info on my web design experience
A bunch of BASIC programs I wrote a while ago. Pong is fun.
Who am I anyway?
My weblog. I wonder if I can keep it up this time?
This is where I will put anything that I feel deserves a more permanent home than a simple blog entry
Webmail for those who have an email address @jsoft.ca
Contacts

Personal: jmalone@jsoft.ca

Anything to do with Reblogger: reblogger@jsoft.ca

Anything to do with Chorus: chorus@jsoft.ca

The IT Resource

Valid XHTML 1.0!

This website created by Jesse Malone
Home Web Apps Web Design Basic
About Me Blog Noteworthy Webmail

J-Soft Blog

Monday, July 26, 2004

I'm at work, and probably shouldn't be blogging, but I have to post this. I was just looking for the MLDBM perl module, that I need for the Content Management System I'm working on. Next to it I noticed a new version of the module called MLDBM::Easy. Check out the description from its manpage. Note the use of the terms "old and busted" and "new hotness". If no one else, Benjamin will like this. I never imagined I'd see those terms applied to nested data structures.


This module allows you to work with multi-dimensional databases, just like MLDBM, but it does work behind the scenes to allow you to treat the multi-dimensional database like a normal data structure. Basically, you don't need to use the piecemeal access that MLDBM required:

  # old and busted

my $record = $db{some_key};
$record->[2] += 100;
$db{some_key} = $record;
  # new hotness

$db{some_key}[2] += 100;

Of course, with this convenience comes a loss of speed. Deal with it.

After having found the module I realized that I already have the MLDBM module, as part of chorus-lib, which I am using.


posted by Jesse at 9:10 AM #