in reply to Re: This is why Perl is so frustrating
in thread This is why Perl is so frustrating
Namely: For a given A != B, (!A or !B) == !(A && B), which will always be true for any single value.
ow.
You attached two conditions to (!A or !B) == !(A && B), but it's always true.
You refer some non-existent "single value" because you meant to talk about (V != A) or (V != B).
I believe you meant:
is equivalent to(A or B)
Because of that,!(!A and !B)
is equivalent to(V != A) or (V != B)
!( (V == A) and (V == B) )
If A != B, the "and" is obviously false (since V can't have two different values at the same time), and the whole statement is therefore true.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: This is why Perl is so frustrating
by jrsimmon (Hermit) on Jul 30, 2009 at 01:06 UTC |