Hi Chris,

Chris Ridd wrote:

On 13/6/05 12:38, David Wood <[EMAIL PROTECTED]> wrote:

Hi folks,

Just three comments on Net::LDAP::LDIF...

1) Using:

my $load_ldif = Net::LDAP::LDIF->new($LOAD_FILE, "w", lowercase => 0,
wrap => 0);
...
$entry->add("cellPhone" => "$phone_number");  # cellPhone with
upper-case "P"
...
$yahoo_load_ldif->write_entry($entry);

produces a line in the output file like:

cellphone: ...  # cellphone with lower-case "p"

so either the "lowercase" arg to "new" isn't working correctly, or I'm
somehow using it incorrectly?

I think you're turning off lowercasing and wrapping. Try setting them to 1
instead ;-)
Wrapping's working fine, that's not the issue.

And for lowercasing, indeed, I'm trying to turn it _off_, not on. What I'm trying to say is, whether you use lowercase => 0 _or_ lowercase => 1, in _both_ cases a written mix-cased entry still gets lowercased.

Cheers,

David

Reply via email to