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


in reply to Filtering DBIx::Class resultsets with external criteria

Can't you just do something like this:
my $resultset = grep { WS->new($_->id)->is_available; } $schema->resultset('Service')->search(\%search);
update
Not sure of how $web_service is linked to your app. I guess I'm trying to say that I utilize grep for simple filters.

--
Rohan