title: How to extract data from Parallel::ForkManager in perl
body: <p>I am using google just for explaining my issue.<br>
  I have calculated Latency time for search request on google and i am printing it.<br>
  Now, i need data like max time, min time, average time. So i am trying to push data to array which can be manipulated later on. 
  Array is coming out to be blank. Seems this is limitation of parallel-forkmanager. Please suggest some work around.</p>
  
  <p>My code:</p>
  
  <pre><code>use Parallel::ForkManager;
  use WWW::Mechanize;
  use LWP::UserAgent;
  use Time::HiRes qw/gettimeofday/;
  use Time::Format qw/%time/;
  use POSIX       qw( strftime );
  use Time::HiRes qw( gettimeofday );
  $count=5;
  @arr=();
  $pm = new Parallel::ForkManager($count);   
  for(1..$count)  
  {     
    $pm-&gt;start and next;      
    $m = WWW::Mechanize-&gt;new();
    $m-&gt;get( "http://www.google.com" );
    $s1=gettimeofday;
    my ($secs, $microsecs) = gettimeofday();
    print strftime("%H:%M:%S", localtime($secs)) . sprintf(".%04d",
  
  $microsecs/10);
    $m-&gt;submit_form(
    form_number =&gt; 1,
    fields    =&gt; {q=&gt;'abcd'},
    );
  
    print " ";
    print $m-&gt;title;
    print " ";
    $s2=gettimeofday;
    my ($secs, $microsecs) = gettimeofday();
    print strftime("%H:%M:%S", localtime($secs)) . sprintf(".%04d",   
  
  $microsecs/10);
    $s3=$s2-$s1;
    $s3=$s3*1000;
    print "  $s3\n";
    push(@arr,$s3);
    $pm-&gt;finish   }  
  
  $pm-&gt;wait_all_children; ## wait for the child processes
  foreach(@arr)
  {
  print "$_\n";
  }
  </code></pre>