Result:$x = "161"; # a string print $x & 255; # the other one is a number...
161
Assuming the "161" comes from user input and the 255 is hardcoded, there's no reason to have a problem.
In reply to Re^2: bitwise operators
by bart
in thread bitwise operators
by gtdunlap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |