Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Filtering DBIx::Class resultsets with external criteria

by arc_of_descent (Hermit)
on Nov 09, 2008 at 04:46 UTC ( #722452=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://722452]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2016-09-29 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (552 votes). Check out past polls.