Would be nice to have a comment about 'Administrator' and 'Guest' in that code, or just use a constant or a variable with auto-descriptive name like my $administratorSidRegex = '^S-1-5-21...';