in reply to Multithreading How do I share hash of hash of arrays

The code you've posted is incomplete and does not run. Thus; for anyone to help you, they must first make the snippet run. That's lazy & rude.

Second, your annotations are wrong. You claim this line "works fine":

$hash{$a} = threads::shared::shared_clone(@array); ## This part works +fine

But in truth it produces the error: Usage: shared_clone(REF) at ...

So, if you want some help; first make your code compile clean under strict & warnings; and then make sure that it does what you say it does. Then come back.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked