Help for this page
use strict; use warnings; ... find( \@diag, $n, $k, $threshold, 0, [], \@result ); print "@$_: ".sum(map{$MTX->[$_][$_]}@$_)."\n" for @result;