use Template; use DBM::Deep;
my $t = Template->new; # create engine
my $db = DBM::Deep->new("foo.db"); # create storage
$t->process($my_template, { db => $db });
We now have the db hash in the template which is effectively a permanent multi-level data structure. What's more, it can be safely shared between multiple processes (there are lock/unlock methods for critical regions).
This rocks. This module should be core. Down with MLDBM. Up with DBM::Deep!
Well... (Score:1)
Re:Well... (Score:2)
Re:Well... (Score:1)
Baby, where have you been all my life? (Score:2)
-sam
neat, but... (Score:1)
Re:neat, but... (Score:1)