S
swen
the code:
use Data:
umper;
use Data:
swen said:the code:
use Data:umper;
.
.
.
$Data:umper::Useqq = 1; # i have also tried with a setting of 0
my $search = eval(Dumper($params));
print "addSearch(): Dumper(\$params) = ".Dumper($params);
print "addSearch(): Dumper(\$search) = ".Dumper($search);
print "addSearch(): Dumper(eval(Dumper(\$params))) =
".Dumper(eval(Dumper($params)));
the output (you can also see what $params contains):
addSearch(): Dumper($params) = $VAR1 = {
"returnFields" => [
"pr.status",
"pr.requestor"
],
"searchFields" => [
{
"and_or" => "and",
"name" => "pr.status"
}
]
};
addSearch(): Dumper($search) = $VAR1 = undef;
addSearch(): Dumper(eval(Dumper($params))) = $VAR1 = undef;
Can someone tell me why the eval returns undef? I'm missing something.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.