I am very new at using RoseDB. I have a simple query in which I need to pass multiple values to the query, but I need to place those values in a variable. I am receiving multiple values from user input that I need to break up and send them to the query.
So how can I take the example
title => { like => [ '%million%',
'%resident%' ] },
and do something like
my @keywordJoin;
my $newKeyword;
my $searchItem = $fdat->{sSearch};
my @keywords = split(' ', $searchItem );
foreach (@keywords) {
$newKeyword = " '%$_%' ";
push(@keywordJoin, $newKeyword);
}
my $string = join(" , ",@keywordJoin);
title => { like => [ \$string ] } (this does not work!!!!)
Any advice is greatly appreciated.