in reply to bitwise AND against a variable containing Fnctl constants not returning desired results

& has lower precedence than ==, so use parens.

return unless ($dirStats[2] & $mask) == $mask;
  • Comment on Re: bitwise AND against a variable containing Fnctl constants not returning desired results
  • Download Code