our $T //= 4; #### my @threads = map{ threads->new( \&worker, $filename, $target, $chunks[ $_ ], $chunks +[ $_+1 ] ) } 0 .. $T-1; #### my $total = 0; $total += $_->join for @threads;
## my @threads = map{ threads->new( \&worker, $filename, $target, $chunks[ $_ ], $chunks +[ $_+1 ] ) } 0 .. $T-1; ##
## my $total = 0; $total += $_->join for @threads;