Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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


Comment on Re: Filtering DBIx::Class resultsets with external criteria
Download Code

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 having an uproarious good time at the Monastery: (10)
As of 2015-07-02 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (37 votes), past polls