Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How can I set a bit to 0 ?

by ikegami (Patriarch)
on May 26, 2022 at 16:37 UTC ( #11144201=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $flags |= 1 << $bit_num;
    
  2. or download this
    $flags &= ~( 1 << $bit_num );
    
  3. or download this
    $flags ^= 1 << $bit_num;
    
  4. or download this
    $flags & ( 1 << $bit_num )
    
  5. or download this
    $stats &= ~downLoading;   # No longer downloading.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2023-10-04 23:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?