in reply to Re: Accessing class data from a second thread
in thread Accessing class data from a second thread

Thank you very much for your response.

I followed (and have tried previously) your first comment but get the error: "Invalid value for shared scalar".

Now I'm assuming the second part of what you said will resolve this but I don't quite follow. Can you please clarify what I need to do inside the class?

Thanks again!

  • Comment on Re^2: Accessing class data from a second thread

Replies are listed 'Best First'.
Re^3: Accessing class data from a second thread
by Anonymous Monk on Jun 20, 2011 at 18:55 UTC

    Are you assigning a hash or array reference to a shared scalar?

    If so, be sure to share the hash/array before taking the reference.

      I am assigning an instance of a class to the shared scalar.