[PATCH] Fix missing require Net::LDAP::Util in Message.pm

Dominic Hargreaves <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Organization Computing Services, University of Oxford
Message-ID <[email protected]>
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
require-ldap-util.diff (text/x-diff, 362 B)
--- 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);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.