On Jan 9, 4:10am, <[EMAIL PROTECTED]> wrote:
} Jeff Grossman wrote:
} > if ($recip2 eq '[EMAIL PROTECTED]' or
} > $recip2 eq '[EMAIL PROTECTED]' and
} > $sender2 ne '[EMAIL PROTECTED]') {
} > ) {
}
} Parentheses are a good idea here...
Correction: parentheses are a MUST....
The problem is that "and" binds tighter then "or" so Perl sees the
expression as A or (B and C). If A is true then the whole expression
is true.
} if (
} (
} $recip2 eq '[EMAIL PROTECTED]' or
} $recip2 eq '[EMAIL PROTECTED]'
} ) and
} $sender2 ne '[EMAIL PROTECTED]'
} ) {
}
} but the logic looks like it shold have worked anyway.
No, see above.
}-- End of excerpt from <[EMAIL PROTECTED]>
_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang