Hashes of Arrays and databases

Tkil tkil at scrye.com
Sun Dec 23 03:05:42 CST 2001


>>>>> "Joe" == Joe Oppegaard <joe at joppegaard.com> writes:

Joe> I'm trying to add hashes of arrays to a database, but accessing
Joe> those values again is the problem. First of all, is this even
Joe> possible? I haven't seen any documentation that says it isn't,
Joe> although I also have been able to find any code that actually
Joe> does it either...

   http://www.perldoc.com/perl5.6.1/pod/perlfaq4.html#How-do-I-keep-persistent-data-across-program-calls-

the basic idea is that you have to put out the data in a format that
can be read back in; java and other languages call this "seriali-
zation" and it is a mostly-solved problem (although it's not trivial;
think especially of recursive or self-referencing data structures, and
what it means to "write those to disk" in a way that can be restored
into memory sanely).

t.
TIMTOWTDI



More information about the Pdx-pm-list mailing list