Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Storable alternatives

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

in reply to Re: Storable alternatives
in thread Storable alternatives

$tree may be an arbitrarily complex structure and I just want to replace some of the objects inside at serialization time.

Your code can only be used to replace the top object.

Comment on Re^2: Storable alternatives
Download Code
Replies are listed 'Best First'.
Re^3: Storable alternatives
by vsespb (Chaplain) on May 17, 2013 at 13:52 UTC
    Your code can only be used to replace the top object.
    Not quite understand. replace() sub here _can_ replace just _some_ of the inner objects of $tree
      Oh, but then, I would have to traverse and clone the data structure myself, something that is far for easier in the general case.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2015-12-02 03:09 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (32 votes), past polls