Two options spring to mind. One is to use YAML for your serialization. It's fast and relatively safe. The other option would be to try Pixie. You would create an object wrapper around your data structure and use Pixie to store it in a database.
use Pixie; my $pixie = Pixie->new->connect(@connection_paramters); my $cookie = $pixie->insert($any_object);
At that point, you just cache your cookie however you want. Later, when you want the object back, retrieve the cookie and...
$pixie->get($cookie)You can also bind names to your objects and fetch by name, if you prefer. I don't know if that would be faster, but it can present a clean interface.
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: Using bytecode for object serialization
by Ovid
in thread Using bytecode for object serialization
by tall_man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |