if($#arr>=10){ my $extr_ref = \%extr_dist; my $extr_output = $bayon->clustering($extr_ref); ... ...