in reply to Invalid value for shared scalar error with shared class object

You cannot share (standard perl) blessed references (objects) between threads using threads::shared.

However, recent version of threads::shared export another version of bless which does allow the sharing of objects.

But it's not clear to me how you would go about re-blessing an object returned by a pre-existing module that does not use the shareable version of bless?

See yourperl/html/lib/threads/shared.html#objects for a little more info.


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".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re: Invalid value for shared scalar error with shared class object
  • Download Code