{
    "content": [
        {
            "type": "text",
            "text": "# Tie::Hash::NamedCapture (perldoc)\n\n## NAME\n\nTie::Hash::NamedCapture - Named regexp capture buffers\n\n## SYNOPSIS\n\ntie my %hash, \"Tie::Hash::NamedCapture\";\n# %hash now behaves like %+\ntie my %hash, \"Tie::Hash::NamedCapture\", all => 1;\n# %hash now access buffers from regexp in $qr like %-\n\n## DESCRIPTION\n\nThis module is used to implement the special hashes \"%+\" and \"%-\", but it can be used to tie\nother variables as you choose.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Tie::Hash::NamedCapture",
        "section": "",
        "mode": "perldoc",
        "summary": "Tie::Hash::NamedCapture - Named regexp capture buffers",
        "synopsis": "tie my %hash, \"Tie::Hash::NamedCapture\";\n# %hash now behaves like %+\ntie my %hash, \"Tie::Hash::NamedCapture\", all => 1;\n# %hash now access buffers from regexp in $qr like %-",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Tie::Hash::NamedCapture - Named regexp capture buffers\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "tie my %hash, \"Tie::Hash::NamedCapture\";\n# %hash now behaves like %+\n\ntie my %hash, \"Tie::Hash::NamedCapture\", all => 1;\n# %hash now access buffers from regexp in $qr like %-\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module is used to implement the special hashes \"%+\" and \"%-\", but it can be used to tie\nother variables as you choose.\n\nWhen the \"all\" parameter is provided, then the tied hash elements will be array refs listing the\ncontents of each capture buffer whose name is the same as the associated hash key. If none of\nthese buffers were involved in the match, the contents of that array ref will be as many \"undef\"\nvalues as there are capture buffers with that name. In other words, the tied hash will behave as\n\"%-\".\n\nWhen the \"all\" parameter is omitted or false, then the tied hash elements will be the contents\nof the leftmost defined buffer with the name of the associated hash key. In other words, the\ntied hash will behave as \"%+\".\n\nThe keys of \"%-\"-like hashes correspond to all buffer names found in the regular expression; the\nkeys of \"%+\"-like hashes list only the names of buffers that have captured (and that are thus\nassociated to defined values).\n\nThis implementation has been moved into the core executable, but you can still load this module\nfor backward compatibility.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "perlreapi, re, \"Pragmatic Modules\" in perlmodlib, \"%+\" in perlvar, \"%-\" in perlvar.\n",
                "subsections": []
            }
        }
    }
}