First, you should provide a complete example including the data that generates the result shown.
Second, your results would be much clearer of you printed hex rather than decimal numbers (use printf "OR: %08x\n", $or; for example).
Third, always use strict; use warnings;
In reply to Re: Bitwise ops inconsistent
by GrandFather
in thread Bitwise ops inconsistent
by smrtdrmmr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |