Le 21 juillet 2010 12:43, Clément OUDOT <clem.ou...@gmail.com> a écrit : > Hello, > > I am a developer of LemonLDAP::NG, a WebSSO product written in Perl, > that uses a lot Perl-LDAP. So first, thanks for all the work done in > this program! > > We use Perl-LDAP for a long time, but I have a problem with latest > release 0.4001 (by the way, the irelease is not published on the > website, only on CPAN). > > The error I get is : > > Lemonldap::NG::Portal::AuthLDAP load error: Modification of a > read-only value attempted at > /usr/local/share/perl/5.10.1/Net/LDAP/Constant.pm line 13 > > > This was working with Perl-LDAP 0.39, and I think the error is linked > to this modification: > > http://git.goingon.net/?p=perl-ldap.git;a=blobdiff;f=lib/Net/LDAP/Constant.pm;h=972eba1eecc4f9e68f728f514bb4097d39c2976c;hp=7098d8ca55f8256fa0197fbb9a20b1e989a893b6;hb=e7669f8b962a09cf1340397516e4d6c88cf83c0f;hpb=4a036b2268fcef97b8d7c02ee974bdc301210d4f > > > As pointed by Debian packagers in > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577340, a workaround > can be to add 'local $_' line 12. > > Do you think this can be corrected in Perl-LDAP? >
Hi, I think I should not have spoken so quickly... I see that the bug was already reported here: https://rt.cpan.org/Public/Bug/Display.html?id=56726 As you said, it will be in 0.41, thanks for that! On my side, I also commited a patch so that we do not set $_ to a constant before loading Net::LDAP, this is explained in this bug report: http://jira.ow2.org/browse/LEMONLDAP-128 Clément.