{
    "content": [
        {
            "type": "text",
            "text": "# Net::LDAP::FilterMatch (perldoc)\n\n## NAME\n\nNet::LDAP::FilterMatch - LDAP entry matching\n\n## SYNOPSIS\n\nuse 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}\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **ABSTRACT**\n- **METHOD**\n- **SEE ALSO**\n- **COPYRIGHT**\n- **AUTHORS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Net::LDAP::FilterMatch",
        "section": "",
        "mode": "perldoc",
        "summary": "Net::LDAP::FilterMatch - LDAP entry matching",
        "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}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "ABSTRACT",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "METHOD",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}