On Thu, May 16, 2013 at 11:27 PM, timothy adigun <2teezp...@gmail.com>wrote:
> > Hi Natxo, > Please see my comment below: > > On Thu, May 16, 2013 at 8:57 PM, Natxo Asenjo <natxo.ase...@gmail.com>wrote: > >> hi, >> >> in a ldap script where I get a list of values of a multivalued attribute >> like this: >> >> @memberof = qw( cn=group1,cn=xxx,dc=domain,dc=tld >> cn=group2,cn=xxx,d=domain,dc=tld etc etc) ; >> > > Since you use "qw", there is no need to still separate the element of > your array with comma. > yes, I was not separating it, this is a normal ldap object, they contain commas (weird, I know, it just does not surprise me any longer). So each element is the string between the blanks. In fact the @memberof the array is actually never like that black on white, but I get that array from Net::LDAP after a search operation in the ldap server. It turns out my regex was greedy and that is why it did not work. Now it is fixed thanks to this awesome list. Thanks for taking the time to answer my question. -- groet, natxo