{
    "mode": "info",
    "parameter": "Net::LDAP::Search",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/Net%3A%3ALDAP%3A%3ASearch/json",
    "generated": "2026-07-07T08:36:46Z",
    "synopsis": "use Net::LDAP;\n$mesg = $ldap->search( @searchargs );\n@entries = $mesg->entries;",
    "sections": {
        "Net::LDAP::Search(3pm)User Contributed Perl DocumentatioNet::LDAP::Search(3pm)": {
            "content": "",
            "subsections": []
        },
        "NAME": {
            "content": "Net::LDAP::Search - Object returned by Net::LDAP search method\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP;\n\n$mesg = $ldap->search( @searchargs );\n\n@entries = $mesg->entries;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "A Net::LDAP::Search object is returned from the search method of a\nNet::LDAP object. It is a container object which holds the results of\nthe search.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Net::LDAP::Search inherits from Net::LDAP::Message, and so supports all\nmethods defined in Net::LDAP::Message.\n\nasstruct ( )\nReturns a reference to a HASH, where the keys are the DNs of the\nresults and the values are HASH references. These second level\nHASHes hold the attributes such that the keys are the attribute\nnames, in lowercase, and the values are references to an ARRAY\nholding the values.\n\nThis method will block until the whole search request has finished.\n\ncount ( )\nReturns the number of entries returned by the server.\n\nThis method will block until the whole search request has finished.\n\nentry ( INDEX )\nReturn the N'th entry (zero-based), which will be a\nNet::LDAP::Entry object.  If INDEX is greater or equal than the\ntotal number of entries returned then \"undef\" will be returned.\n\nThis method will block until the search request has returned enough\nentries.\n\nentries ( )\nReturn an array of Net::LDAP::Entry objects that were returned from\nthe server.\n\nThis method will block until the whole search request has finished.\n\npopentry ( )\nPop an entry from the internal list of Net::LDAP::Entry objects for\nthis search. If there are no more entries then \"undef\" is returned.\n\nThis call will block if the list is empty, until the server returns\nanother entry.\n\nreferences ( )\nReturn a list of references that the server returned. This will be\na list of Net::LDAP::Reference objects.\n\nsorted ( )\nReturn a list Net::LDAP::Entry objects, sorted by their DNs.\n\nThe sorting is done on the client side using Perl's alphanumerical\nsort operator \"cmp\".\n\nsorted ( ATTR, ... )\nReturn a list of Net::LDAP::Entry objects, sorted by the specified\nattributes. The attributes are compared in the order specified,\neach only being compared if all the prior attributes compare equal.\n\nThe sorting is done on the client side using Perl's alphanumerical\nsort operator \"cmp\".\n\nshiftentry ( )\nShift an entry from the internal list of Net::LDAP::Entry objects\nfor this search. If there are no more entries then \"undef\" is\nreturned.\n\nThis call will block if the list is empty, until the server returns\nanother entry.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Net::LDAP, Net::LDAP::Message, Net::LDAP::Entry, Net::LDAP::Reference\n",
            "subsections": []
        },
        "ACKNOWLEDGEMENTS": {
            "content": "This document is based on a document originally written by Russell\nFulton <r.fulton@auckland.ac.nz>.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Graham Barr <gbarr@pobox.com>\n\nPlease report any bugs, or post any suggestions, to the perl-ldap\nmailing list <perl-ldap@perl.org>.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c) 1997-2004 Graham Barr. All rights reserved. This program\nis free software; you can redistribute it and/or modify it under the\nsame terms as Perl itself.\n\nperl v5.32.0                      2021-01-03            Net::LDAP::Search(3pm)",
            "subsections": []
        }
    },
    "summary": "Net::LDAP::Search - Object returned by Net::LDAP search method",
    "flags": [],
    "examples": [],
    "see_also": []
}