![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Storing Objects in a Databaseby btrott (Parson) |
on Feb 19, 2000 at 01:33 UTC ( [id://3721]=note: print w/replies, xml ) | Need Help?? |
Have you looked at Storable? It may help you. It can store objects to the filesystem or to memory, then retrieve them, transforming them back into objects. So perhaps you could freeze the object to a scalar, store it in a blob in your database, pull it back out, thaw it, then use it again? I don't know--I've only tested Storable using the filesystem, but it seems logical that you could do the same thing w/ a database. You might be able to do something like this (untested): ...and now use $unthawed just as you would your original object. Does this sound like what you want?
In Section
Seekers of Perl Wisdom
|
|