title: Perl object threading
body: <p>Hey all, I have a question about perl objects and threading.</p>
  
  <p>My program is a log parser that processes each line of the logs into an object list, and 
  thus, each of the objects can be referenced like this :</p>
  
  <p><strong>to get the value stored :</strong></p>
  
  <pre><code>print @object[$index]-&gt;time;
  
  output : 01:11:22
  </code></pre>
  
  <p><strong>to set the value :</strong></p>
  
  <pre><code>@object[$index]-&gt;time("01:22:25");
  print @object[$index]-&gt;time;
  
  output : 01:22:25
  </code></pre>
  
  <p>And after saving all of the logs into memory, I will have a list of @objects.</p>
  
  <p>So the problem lies in the processing of the objects.</p>
  
  <p>I want to process the data via threads and I am able to do it on normal data like modifying a string, adding a total, etc.
  But I do not know how to do so for objects.</p>
  
  <p>I want to do something like </p>
  
  <pre><code>my $thr2 = threads-&gt;new(\&amp;processTime, @object);
  </code></pre>
  
  <p>(example is not correct, just an idea of how I want the processing to be)</p>
  
  <p>So therefore I require the help of you guys to help me with the processing of objects via threads. Thanks</p>