Net::LDAP::Extra −− Load extra Net::LDAP methods


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


"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 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.

More Linux Commands

qsort(3) - sorts an array (Library - Linux man page)........
The qsort() function sorts an array with nmemb elements of size size. The base argument points to the start of the array. The contents of the array are sorted i

vsnprintf(3) - formatted output conversion - Linux man page
The functions in the printf() family produce output according to a format as described below. The functions printf() and vprintf() write output to stdout, the s

FcConfigGetRescanInterval(3) - Get config rescan interval...
Returns the interval between automatic checks of the configuration (in seconds) specified in config. The configuration is checked during a call to FcFontList wh

XML::XPath::Node::Attribute(3pm) - a single attribute.......
new ( key, value, prefix ) Create a new attribute node. getName Returns the key for the attribute getLocalName As getName above, but without namespace informati

Tk_StrictMotif(3) - Return value of tk_strictMotif variable
This procedure returns the current value of the tk_strictMotif variable in the interpreter associated with tkwins application. The value is returned as an integ

ecvt_r(3) - convert a floating-point number to a string.....
ecvt_r.3 - The functions ecvt_r(), fcvt_r(), qecvt_r() and qfcvt_r() are identical to ecvt(3), fcvt(3), qecvt(3) and qfcvt(3), respectively, except that they do

tfind(3) - manage a binary tree (Library - Linux man page)
tsearch(), tfind(), twalk(), and tdelete() manage a binary tree. They are generalized from Knuth (6.2.2) Algorithm T. The first field in each node of the tree i

XShapeGetRectangles(3) - X nonrectangular shape functions...
The X11 Nonrectangular Window Shape Extension adds nonrectangular windows to the X Window System. PREDEFINED VALUES Operations: ShapeSet ShapeUnion ShapeInterse

Tcl_ConvertElement(3) - manipulate Tcl lists (Man Page).....
These procedures may be used to disassemble and reassemble Tcl lists. Tcl_SplitList breaks a list up into its constituent elements, returning an array of pointe

Tcl_FSGetCwd(3) - procedures to interact with any filesystem
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

git-credential-cache(1) Helper to temporarily store password
This command caches credentials in memory for use by future Git programs. The stored credentials never touch the disk, and are forgotten after a configurable ti

djpeg(1) - decompress a JPEG file to an image file (ManPage)
djpeg decompresses the named JPEG file, or the standard input if no file is named, and produces an image file on the standard output. PBMPLUS (PPM/PGM), BMP, GI

We can't live, work or learn in freedom unless the software we use is free.