serialize array of references from $sth->fetchall_arrayref

F

Filippo

hello,
I want to serialize and save on disk data structures from database
query. The object are array of references to array so that

$object->->[j]

is the inner element

1) how can I serialize and un-serialize?
2) is it possible to save it encrypted on disk?

Thanks,

Filippo
 
M

Mark Clements

Filippo said:
hello,
I want to serialize and save on disk data structures from database
query. The object are array of references to array so that

$object->->[j]

is the inner element

1) how can I serialize and un-serialize?

Traditionally you'd use Storable or FreezeThaw
2) is it possible to save it encrypted on disk?
combined with an encryption module, eg Crypt::Blowfish.

However, I've just come across

Data::Serializer

which kills two birds with one stone by wrapping serialization
and encryption into one interface. I have no idea how good it is.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top