in reply to Re^2: UNIX File Permissions equal or less than conditions
in thread UNIX File Permissions equal or less than conditions

All -- thanks for the insight. I ended up with
if ($mode & 07022) { ... }
(I also want to check for setuid/setgid/sticky.) I knew that bitwise was the best way to go, thanks for setting me back on the path.