On 7/16/2016 6:45 PM, Dianne Skoll wrote:
And in fact you do that in a number of places.  And actually, "=" is not
a comparison operator.  It's an assignment operator.  You most likely
need to review your entire filter to make sure you use "eq" for string
comparisons and "==" for numeric comparisons, rather than "=".

I've learned to code equality comparisons with the constant value on the left to make it easier to catch an inadvertent use of = where I meant ==. I don't know how effective that is in Perl but it will throw a compile-time error in C/C++ if the left operand is non-modifiable. So "2 == x" instead of "x == 2", for example.

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to