in reply to passing shared blessed object part 2

I am not sure about the specifics of your errors, but the biggest issue I am seeing is that %thread_hash is declared in the main:: namespace and you are accessing is as if it was a local variable inside the MyFrame:: namespace. Try changing

$thread_hash{'twit'} = $twit;
to
$main::thread_hash{'twit'} = $twit;
and see if that helps. Beyond that I am not really sure what is happening here since I don't have a threaded perl to test this on. I suggest taking this to the moose mailing list (moose at perl.org) or the #moose IRC channel, someone there might be more familiar with Moose and threads.

-stvn

Replies are listed 'Best First'.
Re^2: passing shared blessed object part 2
by Anonymous Monk on Nov 25, 2009 at 01:58 UTC
    thanks guys, I tried both suggestions and still a similar error. At this point I just want to understand why it's not working :(

    -Paul

      Moose did (and perhaps still does) have issues with threads (see this RT bug), but it coredumped and was related to the regexpr that we used to parse the types. It is quite possible Moose has other issues with threads and no one else has encountered them yet. I personally never use Perl threads and I know very few people who do as they are notoriously broken/buggy/problematic. You might want to give Net::Twitter::Lite a try, it is a non-Moose version of Net::Twitter so would at least remove the Moose component from the issue (since I am pretty sure from your code you don't really care about the Moose-ness and are only interested in making this work).

      -stvn