1Net::LDAP::Extra(3)   User Contributed Perl Documentation  Net::LDAP::Extra(3)
2
3
4

NAME

6       Net::LDAP::Extra -- Load extra Net::LDAP methods
7

SYNOPSIS

9         use Net::LDAP::Extra qw(my_extn);
10
11         $ldap = Net::LDAP->new( ... );
12
13         $ldap->my_extn( ... );
14

DESCRIPTION

16       "Net::LDAP::Extra" allows extra methods to be added to Net::LDAP.
17       Normally such methods would be added by sub-classing Net::LDAP, but
18       this proves to get messy as different people write different additions
19       and others want to use multiple of these sub-classes. Users end up
20       having to create sub-classes of their own which inherit from all the
21       extension sub-classes just so they can get all the features.
22
23       "Net::LDAP::Extra" allows methods to be added directly to all Net::LDAP
24       objects. This can be done by creating a class "Net::LDAP::Extra::name"
25       which exports functions. A "use Net::LDAP::Extra qw(name)" will then
26       make these functions available as a methods on all "Net::LDAP" objects.
27
28       Care should be taken when choosing names for the functions to export to
29       ensure that they do not clash with others.
30

SEE ALSO

32       Net::LDAP::Extra::AD,
33
34
35
36perl v5.34.0                      2021-07-22               Net::LDAP::Extra(3)
Impressum