in reply to adding a hash to a shared object
I am trying to add to my shared variable (`$self`) a reference to an unshared one. How can I share the multilevel hash reference returned by JSON->new->utf8->decode?
Have you looked at threads::shared::shared_clone()?
But, like Corion, I think that most of your difficulties are arising because you are approaching threading your problem from the wrong direction. However, as you have yet to either describe the actual problem in any detail, or post the actual code you are using, we can only give wishy washy answers to your specific questions.
I suspect that if you would describe the overall problem in sufficient detail, there is probably a better way of approaching it that would avoid the problems you are encountering.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adding a hash to a shared object
by daverave (Scribe) on Aug 11, 2010 at 13:24 UTC | |
by BrowserUk (Patriarch) on Aug 11, 2010 at 13:42 UTC | |
by daverave (Scribe) on Aug 11, 2010 at 15:19 UTC | |
by BrowserUk (Patriarch) on Aug 11, 2010 at 16:23 UTC |