in reply to permissions

Try looking at: perlfunc:_X, it has various filetest operators.