|
Well...
if ($value ne "nochoice") {$modifyfield = 26; $searchtext eq $value;}
If you want $searchtext to be come equal to $value, you should use '$searchtext = $value' instead of '$searchtext eq $value'.
About the non trueing, what I would try is, try each value out and let the script print $value, or something like:
'print "x".$value."x"', so whatever is between the x's is the actual value of $value (so you're not missing any spaces and stuff), because maybe the =~ didn't clean up, and so you will end up seeing $value was actually '%nochoice', or something.
If printing and checking the $value still doesn't give any results, then instead of 'if ($value ne "nochoice")' try the following:
'if ($value !~ m/nochoice/)'.
|