Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: Storing and retrieving a hash of objects

by rodion (Chaplain)
on Sep 03, 2013 at 20:56 UTC ( #1052178=note: print w/replies, xml ) Need Help??

in reply to Re^2: Storing and retrieving a hash of objects
in thread Storing and retrieving a hash of objects

It would take a little work to put together serialization routines for Set::IntervalTree and Storable to play smoothly together. That may be worth it if you're going to make heavy use of this, but a quick workaround is to write specialized serialization and de-serializetion routines good enough for your own code and use those convert from a hash of objects to a hash of strings and back. Then you can use Storable on the hash of strings. It sounds like you're thinking along these lines already.

One advantage of this approach is that if you decide to do the more general job, you've got some prototyping already under your belt.

  • Comment on Re^3: Storing and retrieving a hash of objects

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052178]
[LanX]: Funny some weeks ago, I met people from the Cimbrian peninsula who didn't know it's called the Cimbrian peninsula ...
[LanX]: ... treid to make smalltalk and felt like Sheldon.
erix looks up Sheldon ...
[erix]: ah. well, that must feel nice, no? ;)
[erix]: not the best way to make friends, though (I suppose)
LanX Fun with Flags anyone?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-03-22 18:49 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (283 votes). Check out past polls.