http://www.perlmonks.org?node_id=271512


in reply to Re: Problems with array references in shared hash values
in thread Problems with array references in shared hash values

my %RESULTS : shared; ..... foreach (1..$thread_number) { push @created_threads, threads->new(\&scan); } ...... sub scan { .... $RESULTS{"id"} = []; .... }