http://www.perlmonks.org?node_id=1022046


in reply to Best way to store object in db

Will not apply directly to your problem but Storable might be of interest.

Update:
Considering the hype around NoSQL unless you have specific need for a relational storage structure you might want to look at file storage.

Replies are listed 'Best First'.
Re^2: Best way to store object in db
by bessarabov (Acolyte) on Mar 06, 2013 at 18:19 UTC

    Thank you! I was thinking about Storable, but It does not suit me. I don't want to store the whole object, but only the parts that are necessary for its recreation. I also want to store version number in the serialized object to make it possible to change the internal format with backward compatibility.

    For now I have the task to store the MySQL, but I want to write the module so it serializes to some text that can be stored anywhere.