return unless (((stat)[2] & S_IWUSR) && ((stat)[2] & S_IWGRP) && ((stat)[2] & S_IWOTH)); #### # Some code my $mask = S_IWUSR | S_IWGRP | S_IWOTH; # Some more code return unless $dirStats[2] & $mask == $mask; # Even more code #### Possible precedence problem on bitwise & operator at ./ww_files-v4-2.pl line 106.