{
    "mode": "perldoc",
    "parameter": "Net::LDAP::FilterMatch",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ALDAP%3A%3AFilterMatch/json",
    "generated": "2026-06-13T12:09:30Z",
    "synopsis": "use Net::LDAP::Entry;\nuse Net::LDAP::Filter;\nuse Net::LDAP::FilterMatch;\nmy $entry = new Net::LDAP::Entry;\n$entry->dn(\"cn=dummy entry\");\n$entry->add (\n'cn' => 'dummy entry',\n'street' => [ '1 some road','nowhere' ] );\nmy @filters = (qw/(cn=dummy*)\n(ou=*)\n(&(cn=dummy*)(street=*road))\n(&(cn=dummy*)(!(street=nowhere)))/);\nfor (@filters) {\nmy $filter = Net::LDAP::Filter->new($);\nprint $,' : ', $filter->match($entry) ? 'match' : 'no match' ,\"\\n\";\n}",
    "sections": {
        "NAME": {
            "content": "Net::LDAP::FilterMatch - LDAP entry matching\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::LDAP::Entry;\nuse Net::LDAP::Filter;\nuse Net::LDAP::FilterMatch;\n\nmy $entry = new Net::LDAP::Entry;\n$entry->dn(\"cn=dummy entry\");\n$entry->add (\n'cn' => 'dummy entry',\n'street' => [ '1 some road','nowhere' ] );\n\nmy @filters = (qw/(cn=dummy*)\n(ou=*)\n(&(cn=dummy*)(street=*road))\n(&(cn=dummy*)(!(street=nowhere)))/);\n\n\nfor (@filters) {\nmy $filter = Net::LDAP::Filter->new($);\nprint $,' : ', $filter->match($entry) ? 'match' : 'no match' ,\"\\n\";\n}\n",
            "subsections": []
        },
        "ABSTRACT": {
            "content": "This extension of the class Net::LDAP::Filter provides entry matching functionality on the Perl\nside.\n\nGiven an entry it will tell whether the entry matches the filter object.\n\nIt can be used on its own or as part of a Net::LDAP::Server based LDAP server.\n",
            "subsections": []
        },
        "METHOD": {
            "content": "match ( ENTRY [ ,SCHEMA ] )\nReturn whether ENTRY matches the filter object. If a schema object is provided, the\nselection of matching algorithms will be derived from schema.\n\nIn case of error undef is returned.\n\nFor approximate matching like (cn~=Schmidt) there are several modules that can be used. By\ndefault the following modules will be tried in this order:\n\nString::Approx\nText::Metaphone\nText::Soundex\n\nIf none of these modules is found it will fall back on a simple regexp algorithm.\n\nIf you want to specifically use one implementation only, simply do\n\nuse Net::LDAP::FilterMatch qw(Text::Soundex);\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Net::LDAP::Filter\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "This library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Hans Klunder <hans.klunder@bigfoot.com> Peter Marschall <peter@adpm.de>\n",
            "subsections": []
        }
    },
    "summary": "Net::LDAP::FilterMatch - LDAP entry matching",
    "flags": [],
    "examples": [],
    "see_also": []
}