in reply to Re^2: One out of three ain't bad
in thread One out of three ain't bad
...is easier to maintain because it is more explicit as to what is required for a truth value. Anyone versed in boolean algebra will easily recognize the sum-of-product form here and instantly grasp the intent.if( !$x && !$y && $z or !$x && $y && !$z or $x && !$y && !$z ) { print "Exactly one..."; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: One out of three ain't bad
by QM (Parson) on Oct 24, 2005 at 03:35 UTC |