in reply to Re: Multiple numeric not or compare in if statement
in thread Multiple numeric not or compare in if statement
OP: maybe it was an oversight, but when changing the nested logic in a condition such as that you must necessarily change the higher level logic if you wish for the original to be equivalent exactly opposite to the negated version.
if (($a == 3) || ($a == 77) || ($a == 8)) -- is exactly opposite to -- if (($a != 3) && ($a != 77) && ($a != 8))
Update: correct - meant to show exact opposites, used the most wrong possible to describe this.
In Section
Seekers of Perl Wisdom