Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Storable Objects

by GrandFather (Sage)
on Jul 14, 2009 at 01:37 UTC ( #779776=note: print w/replies, xml ) Need Help??


in reply to Storable Objects

I see that Data::Dump::Streamer is missing from your list. It is interesting to note that it expends extra effort to try and serialize code refs, although there are a few problematic areas.


True laziness is hard work

Replies are listed 'Best First'.
Re^2: Storable Objects
by BioLion (Curate) on Jul 14, 2009 at 10:19 UTC

    Thanks GrandFather, that may well be what i am looking for. I can will try to incorporate tests into the objects so that they can make sure that the code refs haven't gone funky and that the data the objects hold hasn't changed either.

    I guess subclassing a specialised My::Mod::WithTests class, which includes testable data and expected code ref output, would be the best way to do this? then i can include a few 'testable' objects in the larger collection. Or would a run_tests() method be enough (again including specialised test data and expected ouput)?

    I'll take into account perrin's advice too, see if i can't avoid this whole thing somehow. Or at least strip down the serialized data to a simpler format, only including the key data, and have a new_from_skeleton() method...

    Thanks everyone for your input!

    Just a something something...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://779776]
help
Chatterbox?
NodeReaper takes a ball from the brass monkey

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2016-12-09 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (153 votes). Check out past polls.