Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: bitwise AND against a variable containing Fnctl constants not returning desired results

by no_slogan (Deacon)
on Jun 05, 2014 at 22:29 UTC ( [id://1088938]=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1088938]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-29 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found