Algorithm-Pair-Best2
view release on metacpan or search on metacpan
lib/Algorithm/Pair/Best2.pm view on Meta::CPAN
|| sub { croak "No scoreSub() callback" };
$self->{items} = delete $args{items} || [];
$self->{progress} = delete $args{progress} || sub { };
$self->{window} = delete $args{window} || 5;
if (keys %args) {
croak sprintf "Unknown option%s to %s->new: %s",
scalar(keys %args) > 1 ? 's' : '',
__PACKAGE__,
join(', ', keys %args);
}
return bless($self, ref($proto) || $proto);
}
### my (%cache, %all, @head); # debug variables.
###
###
### sub dbg_hash {
### my ($self, $key, $val) = @_;
###
### my $cache = \%cache;
### my $array;
( run in 0.391 second using v1.01-cache-2.11-cpan-de7293f3b23 )