if $@ || ! defined $sub;
my @candidates;
- if (exists $params{filter}) {
- @candidates=grep { ! $params{filter}->($_) } keys %pagesources;
+ if (exists $params{list}) {
+ @candidates=exists $params{filter}
+ ? grep { ! $params{filter}->($_) } @{$params{list}}
+ : @{$params{list}};
}
else {
- @candidates=keys %pagesources;
+ @candidates=exists $params{filter}
+ ? grep { ! $params{filter}->($_) } keys %pagesources
+ : keys %pagesources;
}
if (defined $params{sort}) {
# clear params, remainder is passed to pagespec
my $num=$params{num};
- delete @params{qw{num deptype reverse sort filter}};
+ delete @params{qw{num deptype reverse sort filter list}};
my @matches;
my $firstfail;