{
    "content": [
        {
            "type": "text",
            "text": "# Dpkg::Exit (perldoc)\n\n## NAME\n\nDpkg::Exit - program exit handlers\n\n## DESCRIPTION\n\nThe Dpkg::Exit module provides support functions to run handlers on exit.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **FUNCTIONS** (3 subsections)\n- **CHANGES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Dpkg::Exit",
        "section": "",
        "mode": "perldoc",
        "summary": "Dpkg::Exit - program exit handlers",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "push_exit_handler",
                        "lines": 2
                    },
                    {
                        "name": "pop_exit_handler",
                        "lines": 2
                    },
                    {
                        "name": "run_exit_handlers",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "CHANGES",
                "lines": 11,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Dpkg::Exit - program exit handlers\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The Dpkg::Exit module provides support functions to run handlers on exit.\n",
                "subsections": []
            },
            "FUNCTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "push_exit_handler",
                        "content": "Register a code reference into the exit function handlers stack.\n"
                    },
                    {
                        "name": "pop_exit_handler",
                        "content": "Pop the last registered exit handler from the handlers stack.\n"
                    },
                    {
                        "name": "run_exit_handlers",
                        "content": "Run the registered exit handlers.\n"
                    }
                ]
            },
            "CHANGES": {
                "content": "Version 2.00 (dpkg 1.20.0)\nHide variable: @handlers.\n\nVersion 1.01 (dpkg 1.17.2)\nNew functions: pushexithandler(), popexithandler(), runexithandlers()\n\nDeprecated variable: @handlers\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
                "subsections": []
            }
        }
    }
}