[Dbix-class] Multiple ands in where clause

Jason Galea lists at eightdegrees.com.au
Sun May 30 09:50:22 GMT 2010


> my @search_strings = (
> '{ \'like\', "%$Term1%" }',
> '{ \'like\', "%$Term1%" },{ \'like\', "%$Term2%" }',
> ...etc...
> );

I don't think you want literal strings in there.. do you mean:

my @search_strings = (
 [{ 'like', "%$Term1%" }],
 [{ 'like', "%$Term1%" },{ 'like', "%$Term2%" }],
 ...etc...
);

cheers,

J



More information about the DBIx-Class mailing list