Without this, my code ends up getting
Undefined subroutine &Net::LDAP::Util::ldap_error_desc called at
/usr/share/perl5/Net/LDAP/Message.pm line 112, <DATA> line 476.
Cheers,
Dominic.
--
Dominic Hargreaves, Systems Development and Support Team
Computing Services, University of Oxford
--- lib/Net/LDAP/Message.pm.ORIG 2008-10-23 13:25:04.000000000 +0100
+++ lib/Net/LDAP/Message.pm 2008-10-23 13:25:27.000000000 +0100
@@ -102,10 +102,12 @@
}
sub error_name {
+ require Net::LDAP::Util;
Net::LDAP::Util::ldap_error_name(shift->code);
}
sub error_text {
+ require Net::LDAP::Util;
Net::LDAP::Util::ldap_error_text(shift->code);
}