Net::LDAP::ExtraSection: User Contributed Perl Documentation (3)Updated: 2003-05-09 |
Net::LDAP::ExtraSection: User Contributed Perl Documentation (3)Updated: 2003-05-09 |
use Net::LDAP::Extra qw(my_extn);
$ldap = Net::LDAP->new( ... );
$ldap->my_extn( ... );
"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 avaliable 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.