[Dbix-class] Searching - two criteria for the same field

Gerg Coates greg at coatesoft.com
Tue Feb 10 07:06:50 GMT 2009


I need to do a search on a resultset that is filtered by two values on 
the same field.

I tried code like this, but it doesn't seem to be working:

my $t = $schema->resultset('Table')->search(
  {
    'glr_date' => { '>=', $beg_date },
    'glr_date' => { '<', $end_date }
  }
);

Can anyone offer guidance on how to handle a search like this?

Thanks,
Greg Coates



More information about the DBIx-Class mailing list