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";
    }