Help for this page

Select Code to Download


  1. or download this
    $_ = "-r-x-w-rwx"; # Mode string in $_
    my $bits = 0;
    ...
        $_ ne "-" and $bits++;
    }
    printf "My bits are: %o\n", $bits;