If you think "duplicate" (or "unique"), think about using a hash!
In that loop, just create a hash-entry for each user, using $obj->{givenName} as the key...foreach $obj (in $ou){ ... print "$obj->{givenName}\n" ; ... }
... unless, however, an entry for that key already exists. In this case you have found a duplicate :-)
HTH, RataIn reply to Re: Compare usernames
by Ratazong
in thread Compare usernames
by PerlUserNL
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |