in reply to Storable alternatives

Storable has produced some very interesting .. ahem .. problems for me that I never quite figured out.   I would freeze something, then thaw it again, and it came out corrupted.   Some did, some didn’t.   I don’t know if it was the Perl version, the system (an AS/400), or what.   But what I did find, that worked out equally well for me (given that storage-space was not a concern), was good ol’ JSON, stored in a memo-field in a database.   (Which had the added bonus of being human-readable.)   I’ve worked with plenty of legacy systems since then which seem to have no problems with it, but I’ve become gun-shy.

Replies are listed 'Best First'.
Re^2: Storable alternatives
by salva (Canon) on May 17, 2013 at 13:52 UTC
    Unfortunately, JSON can only represent a subset of the data structures that can be created in Perl. In example, it can not represent self-referencing data structures.