[Za-pm] Hashes
Sean Carte
scarte at pan.uzulu.ac.za
Thu Jun 5 07:54:12 CDT 2003
On Thu, 2003-06-05 at 14:14, Spike wrote:
> And they screw with your
> mind when you create hashes of arrays of hashes etc :-)
>
> But they are powerful and you can build a whole database in one hash. You
> can even bind it a file for permanence with various modules.
My first encounter with them involved a hash-based database, which used
hashes of arrays and a DBM file for storage. After many days of
frustration someone on a mailing list was kind enough to point out that
you simply can't store references to an array to a file and hope to
retrieve the contents later. You have to stringify the array first. I
eventually landed up using the MLDBM module. I did learn a bit about
hashes in the process, though it felt like I'd done permanent damage to
my brain at the time.
--
Regards
Sean Carte
University of Zululand
Network Services Unit
Phone: 035 902 6081
Fax: 035 902 6028
"La di di, one two three, it's Eric the half a bee..."
More information about the Za-pm
mailing list