go ahead... be a heretic | |
PerlMonks |
Re: bitwise AND against a variable containing Fnctl constants not returning desired resultsby no_slogan (Deacon) |
on Jun 05, 2014 at 22:29 UTC ( [id://1088938]=note: print w/replies, xml ) | Need Help?? |
& has lower precedence than ==, so use parens. return unless ($dirStats[2] & $mask) == $mask;
In Section
Seekers of Perl Wisdom
|
|