Dunc,
Check out either of these modules. You can insert their results into the
database and eval them later to restore the structure.
http://search.cpan.org/search?dist=Storable
http://search.cpan.org/search?module=Data::Dumper
For a simple hash, you are probably better off just using a two column table
and building the hash inside your code since you can manipulate better if
your needs change in the future change.
BTW, keep in mind that your hash can not contain references to 'code', ie
references to subroutines.
Eric Pickup
http://buildacommunity.com
----- Original Message -----
From: "Duncan Hudson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 1:38 PM
Subject: Storing Hash
> I want to take a hash, in Perl w/ DBI, and store it in a column in one of
my
> MySQL tables. I tried writing it to a blob, but I can't read it back
later.
> How would I go about storing the hash and then reprocessing it later?
> Thanks in advance,
>
> Dunc.
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php