foreach my $value(@values) { my $results = $items->search({ 'joined_table.column' => $value }); # Process and output results of this search ... }