[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-ldap-dev
Subject:    RE: Line ending problem while search Active Directory
From:       Robin Mordasiewicz <rmordasiewicz () samuelmanutech ! com>
Date:       2008-01-07 18:17:45
Message-ID: alpine.LRH.1.00.0801071314380.4102 () SMTCORMS05 ! samuelmanutech ! com
[Download RAW message or body]

On Mon, 7 Jan 2008, Don C. Miller wrote:

> Robin, take a look at the get_value documentation about what is returned
> in a list context vs. a scalar context.  Without seeing the code I
> assume you are returning this in scalar.  Try:
>
> print "$attribute: ",join("\n$attribute:
> ",$object->get_value($attribute)),"\n";
>

Thank you, that did correct my problem.
FYI the bad code that I was using, was...

print PERSON_LDIF_FH "\t$attribute: ", $object->get_value($attribute) ,"\n";

Your recommendation solved my problem.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic