|
Posted by brian d foy on May 27, 2008, 4:30 am
Please log in for more thread options wrote:
> PerlFAQ Server wrote:
> [...]
> > 4.65: How can I store a multidimensional array in a DBM file?
> >
> > Either stringify the structure yourself (no fun), or else get the
> > MLDBM (which uses Data::Dumper) module from CPAN and layer it on
> > top of either DB_File or GDBM_File.
>
> It may be worth mentioning, that while Data::Dumper can work well,
> sometimes it maybe be useful to use a module such as PHP::Serialization
> if you are sharing data with a language (like PHP) that support that
> type of serialization.
Interesting suggestion, but I don't want to turn the answer into a
catalog of serialization modules (especially when the question is not
really about anything other than DBM). The question mostly exists
because some of the DBM implementations are quite limited in handling
data so you have to ask those sorts of questions. :)
|