I hardly know perl but I have experience with writing LDAP applications. You have to connect to a Directory or LDAP server first (and port if needed), bind anomalously (for searches) or bind with a dn and password (authenticated) for adds, updates, deletes, and searches. Searches needs to begin at a specific base dn (root or DN path) and then iterate through results and multi pal values. When finished with searches, adds, updates, and deletes, then you must unbind to the directory.
Check the documentation and examples at http://search.cpan.org/~gbarr/perl-ldap-0.36/lib/Net/LDAP.pod
If you need working examples of Delphi, winldap api, VB, TCL, or JAVA examples, I could look through my archives.
Brooks