Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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.


Comment on Re: Storable alternatives
Re^2: Storable alternatives
by salva (Monsignor) 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-09-22 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (203 votes), past polls