Subject: | String comparison not working |
String comparison of query parameter is not working for two reasons.
1. At QueryParameter line 38:
$cond = $op=~/eq|gt|ge|lt|le/ ? '"$cond"' : $cond;
Variable $cond is not interpolated in '"$cond"'. The line should be changed to:
$cond = $op=~/eq|gt|ge|lt|le/ ? "'$cond'" : $cond;
In case $op is a string comparison operator, $req_param should also be quoted, which can be done by adding the following line after line 38:
$req_param = $op=~/eq|gt|ge|lt|le/ ? "'$req_param'" : $req_param;