my %found; for my $user (in $ou) { push @{ $found{ $obj->{givenName} } }, $user; } for my $given (keys %found) { my $users = $found{$given}; next if @$users < 2; # skip unique names print "found ".@$users." users with given name $given:\n"; print "\t", join(', ', map { $_->{name} } @$users), "\n"; }
In reply to Re: Compare usernames
by Anonymous Monk
in thread Compare usernames
by PerlUserNL
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |