Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Net::LDAP::Extra

Name Net::LDAP::Extra
Version 0.02
Located at /usr/local/share/perl5
File /usr/local/share/perl5/Net/LDAP/Extra.pm
Is Core No
Search CPAN for this module Net::LDAP::Extra
Documentation Net::LDAP::Extra
Module Details Net::LDAP::Extra

NAME

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


SYNOPSIS

  use Net::LDAP::Extra qw(my_extn);
  $ldap = Net::LDAP->new( ... );
  $ldap->my_extn( ... );


DESCRIPTION

Net::LDAP::Extra allows extra methods to be added to Net::LDAP. Normally such methods would be added by sub-classing Net::LDAP, but this proves to get messy as different people write different additions and others want to use multiple of these sub-classes. Users end up having to create sub-classes of their own which inherit from all the extension sub-classes just so they can get all the features.

Net::LDAP::Extra allows methods to be added directly to all Net::LDAP objects. This can be done by creating a class Net::LDAP::Extra::name which exports functions. A use Net::LDAP::Extra qw(name) will then make these functions available as a methods on all Net::LDAP objects.

Care should be taken when choosing names for the functions to export to ensure that they do not clash with others.


SEE ALSO

the Net::LDAP::Extra::AD manpage,

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024