Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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);
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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://722452]
[dazz]: Hi I have grabbed an image from an IP camera with Image::Grab. I then want to pass that image object to a subroutine where I do a read-only test on the image with Image:Magick.
[dazz]: How do I pass an image object to a subroutine and then apply a Image::Magick a read-only method to the image object???
[dazz]: Also, I want to use Image::Magick to annotate and composite (not in a sub). How do I take a Image::Grab object and apply Image::Magick write methods to it??

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-03-27 07:38 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (317 votes). Check out past polls.