develooper Front page | perl.ldap | Postings from August 2011

Re: [Net::LDAP] I cannot list multiple values for the same attribute

Thread Previous
From:
Chris Ridd
Date:
August 11, 2011 10:59
Subject:
Re: [Net::LDAP] I cannot list multiple values for the same attribute
Message ID:
3ACC2780-BA6F-4322-97AB-DB0A47F2730B@mac.com

On 11 Aug 2011, at 18:04, Mehmet wrote:

> Peter,
> 
> Thanks so much for your super-fast reply, which made me realize that
> entry->get_value($attr)
> returns a list which can be iterated :)

When you call it in an array context it will return all the values, otherwise it will just return a single (ie scalar) value.

Cheers,

Chris

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About