tobold.org

correct • elegant • free

△ comp.lang.perl △

◅ opening files vs. directories

Cleaning up defunct processes on SunOS ▻

Storing objects into a tied hash

In article <32EBACFD.28AFAD0F@dna.fi>, Dado Colussi  <gdc@dna.fi> wrote:
>Is it possible to store objects into a tied hash?

A Berkeley DB holds arbitrary data strings, so what you need is a way to
turn your objects into strings, and back again.

There are a couple of modules that purport to do this; FreezeThaw and
Data::Dumper look promising.  See the module list at

    ftp://ftp.metronet.com/pub/perl/modules/00modlist.long.html

Tim.
--
Tim Goodwin   | "A language needs both intestines and guts." -- Larry Wall

Original headers:

From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.lang.perl.misc
Subject: Re: Storing objects into a tied hash
Date: 4 Feb 1997 15:20:13 GMT
Organization: UUNET PIPEX
Message-ID: <5d7k3d$839@join.news.pipex.net>
References: <32EBACFD.28AFAD0F@dna.fi>

△ comp.lang.perl △

◅ opening files vs. directories

Cleaning up defunct processes on SunOS ▻