Re: Net::LDAP::Entry - RFC
[email protected] (Chris Ridd) Tue, 02 Jan 2018 17:58:50 +0000
| Newsgroups | perl.ldap |
|---|---|
| Message-ID | <[email protected]> |
> On 2 Jan 2018, at 13:36, Burns, Victor M via perl-ldap = <[email protected]> wrote: >=20 > Thanks for getting back to me. I suspect I confused the version = number. As you know perl-ldap is a large set of classes. I am using the = latest perl-ldap-0.65 and the class in Question Net::LDAP::Entry is 0.27 = and is confirmed both on my system and on CPAN at this link; = http://search.cpan.org/~marschap/perl-ldap-0.65/lib/Net/LDAP/Entry.pod = which shows it is version 0.27 and is part of perl-ldap-0.65 OK. > As I mentioned it might be nice if the ldif method supported = additional options. I found it useful to have a wrap =3D> 0 option to = disable wrapping. For now I get around the issue by cheating. In a class = I've written I fudge a new method, ldif_nowrap, into the = Net::LDAP::Entry namespace, "God bless PERL!" that hardcodes the ( wrap = =3D> 0 ) into it and I call it in the place of the regular ldif method. = I do it this way and avoid the Perl redefined subroutine warning all = together. I'm a huge fan of strict and warnings! I don't write anything = without them. :) Disabling LDIF wrapping is pretty useful when you=E2=80=99ve got long = values getting output, and you=E2=80=99re eyeballing the output, or even = passing it to tools that aren=E2=80=99t LDIF-aware (e.g. grep!) We (ForgeRock) even changed the default in ForgeRock's ldapsearch tool = to not wrap as of DS 5.x. IMO changing Net::LDAP::LDIF to be able to not wrap would be useful. Chris=