On 9 Jan 2008, at 13:30, Sweeny, Jonny wrote:
unbind is sufficient; there is no 'disconnect', as far as I know. See: http://search.cpan.org/~gbarr/perl-ldap-0.34/lib/Net/LDAP.pod
Unbind just sends the LDAP unbind operation; the connection is left open.
Destroying the $ldap object should close the socket. You can even call $ldap->socket and close that, but destroying the object is cleaner.
Cheers, Chris