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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top