One thought crossed my mind (but I'm not in a position to test it).
I believe that the newer versions of threads::shared override bless in order to enable the new shared blessed refs facility. And whilst I have no direct knowledge that it does, it wouldn't surprise me if Moose or Class::MOP did the same thing for their own purposes. That could well account for (at least some) of the errors you see when you include both.
It might be worth trying avoiding the conflict by invoking threads::shared::share() directly, rather than importing it. So something like:
use threads::shared ();
...
$thread_hash{'twit'} = threads::shared::share( $twit );
...
might provide a work around for the problems.
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.
|