http://www.perlmonks.org?node_id=1174066


in reply to Re-using DBIx ResultSet with different parameters

Hi MattLG,

have you thought about using

IN

in your select?

In the doc DBIx::ResultSet::Cookbook under subselects.

Adapted from the doc you could do this (untested):

$items->search({ 'joined_table.column' => {-in => \@values } });