Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How can I set a bit to 0 ?

by kcott (Archbishop)
on May 26, 2022 at 17:34 UTC ( [id://11144202]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
        $var2 &= ~(1 << $bit);
        printf $fmt, $var2;
    }
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    
        return $num;
    }
    
  3. or download this
    Initial:
    00010100
    ...
    Bit 4 off:
    00000100
    00000100
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found