in reply to mongodb dynamic filter
That's a rather convoluted chunk of code.
I'd suggest putting "use strict; use warnings;" at the top of your script. That way, the line:
my %serchstrx={'$and' => []};
would give you a warning that you could fix. I'd also suggest dumping your structure, something like:
use Data::Dumper; ... your code ... print "Search: ", Dumper(\%serchstrx),"\n";
So you can see what it is you're actually building and trying to pass on to MongoDB.
It looks like there's plenty of other things to look at, but I'd start with those first.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mongodb dynamic filter
by actarus2003 (Novice) on Nov 09, 2017 at 15:52 UTC |