in reply to passing shared blessed object part 2

Line 77 is:

$thread_hash{'twit'} = $twit;

What about 808994 don't you understand?


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.
RIP PCW It is as I've been saying!(Audio until 20090817)

Replies are listed 'Best First'.
Re^2: passing shared blessed object part 2
by Anonymous Monk on Nov 24, 2009 at 18:41 UTC
    oh sorry, I should have posted the error I got from trying that. Here it is:
    Can't locate object method "share" via package "Class::MOP::Class::__A +NON__::SER IAL::2" at thread_test.pl line 77.

      Try:

      $thread_hash{'twit'} = share( $twit );

      If that doesn't work, you'll probably need a Moose guru to sort it out.


      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.
        Interesting...if I add use threads::shared; to the MyFrame package I see the following:
        Thread 1 terminated abnormally: Can't locate object method "blessed" v +ia package "Can't locate object method "update" via package "Class::MOP::Class:: +__ANON__:: SERIAL::2" at thread_test.pl line 115. " (perhaps you forgot to load "Can't locate object method "update" via + package " Class::MOP::Class::__ANON__::SERIAL::2" at thread_test.pl line 115. "?) at thread_test.pl line 118.
        I'm at a complete loss