Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 avoiding work at the Monastery: (8)
As of 2014-07-31 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls