Can you make the dlists hashes instead of arrays? Then you could check something like this:
if (!grep {!exists $user_hash{$dlist_name}{$_}} @emails) { # flag 'all users' }
That would have the advantage of deduping your dlists; where with an array you probably ought to check before pushing.
In reply to Re: Checking contents of array against contents of a hash
by hbm
in thread Checking contents of array against contents of a hash
by walkingthecow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |