in reply to Compare usernames
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, Rata
|
|---|