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

Re: Named Bits in a 32-bit integer

by BronzeWing (Monk)
on Jul 31, 2002 at 19:27 UTC ( [id://186568]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    ...
    $Permissions &= ~READ; # Set READ to false
    $Permissions ^= EXECUTE; # Toggle EXECUTE
    print $Permissions, "\n";
    
  2. or download this
    if ($Permissions & READ) {
        print "You can read.\n";
    } else {
        print "You can't read.\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-24 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found