good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Boolean math: Fill in the blanks.by hawtin (Prior) |
on Oct 10, 2008 at 11:21 UTC ( [id://716430]=note: print w/replies, xml ) | Need Help?? |
What I meant to convey is that if you replace all 0s with 1s and all & with | then you get the same result. If the operations are done in the same order then, I think my expression gives the results I have stated. The problem is that precedence is changing the way Perl combines the operators. When defining these expressions I should have put brackets round everything.
In Section
Seekers of Perl Wisdom
|
|