in reply to Re: passing shared blessed object part 2
in thread passing shared blessed object part 2
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: passing shared blessed object part 2
by stvn (Monsignor) on Nov 25, 2009 at 01:24 UTC | |
by BrowserUk (Patriarch) on Nov 25, 2009 at 02:07 UTC |