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.
|
|---|