http://www.perlmonks.org?node_id=716430


in reply to Re^2: Boolean math: Fill in the blanks.
in thread Boolean math: Fill in the blanks.

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.

  • Comment on Re^3: Boolean math: Fill in the blanks.