Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

davorg (18)

Yahoo! ID: daveorguk (Add User, Send Message)

Hacker, author, trainer

Technorati Profile []

Journal of davorg (18)

Friday December 07, 2001
11:38 AM

Data Structures

[ #1546 ]

I've written a couple of objects that model data structures that we use here. I was just explaining the inner workings of one of them to the woman who is taking over from me. I'd forgotten quite how baroque it was.

The object is a reference to a hash of hashes of hashes. In each of these bottom level hashes, one of the values is a reference to a hash of arrays.

I drew a picture, but I'm not sure to what extent it helped! It's the data structure from hell.

Of course, the object's methods hide you from all this complexity. They just work :)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Maybe I've got it all wrong, but this is the sort of thing XML helps with. At least I think so. Create an XML serialisation of your data structure. Then you can fiddle with it, and make a back-compat thaw routine for transition to a better structure.

    Sure, it often doesn't apply to your app, but I thought I'd bring it up.