Re: Search and print unique LDAP attribute values.

2012-09-14 Thread Bruce Johnson
On Sep 14, 2012, at 9:38 AM, Chris Ridd wrote: > > On 14 Sep 2012, at 16:46, Bruce Johnson wrote: > >> >> On Sep 14, 2012, at 12:13 AM, Chris Ridd wrote: >>> >>> By definition the values in a given stored LDAP attribute have to be all >>> unique, so most of your problem "goes away": @result

Re: Search and print unique LDAP attribute values.

2012-09-14 Thread Chris Ridd
On 14 Sep 2012, at 16:46, Bruce Johnson wrote: > > On Sep 14, 2012, at 12:13 AM, Chris Ridd wrote: >> >> By definition the values in a given stored LDAP attribute have to be all >> unique, so most of your problem "goes away": @result is simply @a! > > I'm pretty sure that the method here wil

Re: Search and print unique LDAP attribute values.

2012-09-14 Thread Bruce Johnson
On Sep 14, 2012, at 12:13 AM, Chris Ridd wrote: > > On 13 Sep 2012, at 20:47, "Stierwalt, Kyle" wrote: > >> New to Perl, what I'm trying to do is print out the unique values for a >> given LDAP attribute. to directly snswer your question, if @results really does contain all the unique value

Re: Search and print unique LDAP attribute values.

2012-09-14 Thread Chris Ridd
On 13 Sep 2012, at 20:47, "Stierwalt, Kyle" wrote: > New to Perl, what I'm trying to do is print out the unique values for a given > LDAP attribute. By definition the values in a given stored LDAP attribute have to be all unique, so most of your problem "goes away": @result is simply @a! Che

Search and print unique LDAP attribute values.

2012-09-13 Thread Stierwalt, Kyle
New to Perl, what I'm trying to do is print out the unique values for a given LDAP attribute. 1. Does the while portion of this look correct? 2. If so, how do I print out the values of the hash? ...snip... my $iDirLdap = &Common::connectToiDir2("ldap.edu"); my $iDirResult = $iDirLdap->search