& has lower precedence than ==, so use parens.
return unless ($dirStats[2] & $mask) == $mask;In reply to Re: bitwise AND against a variable containing Fnctl constants not returning desired results
by no_slogan
in thread bitwise AND against a variable containing Fnctl constants not returning desired results
by theillien1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |