if (@index_data) {
if ($index_filter) {
no strict 'refs';
- foreach my $d (&$index_filter(@index_data)) {
- $index->insert($field, $d, $path);
+ foreach my $d (@index_data) {
+ $index->insert($field, &$index_filter($d), $path);
}
} else {
foreach my $d (@index_data) {