Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-12-20 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls