Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Storable alternatives

by sundialsvc4 (Abbot)
on May 17, 2013 at 13:22 UTC ( #1033970=note: print w/replies, xml ) Need Help??

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 (Abbot) 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033970]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-02-19 22:24 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (266 votes). Check out past polls.