{
    "content": [
        {
            "type": "text",
            "text": "# vars (man)\n\n## NAME\n\nvars - Perl pragma to predeclare global variable names\n\n## SYNOPSIS\n\nuse vars qw($frob @mung %seen);\n\n## DESCRIPTION\n\nNOTE: For use with variables in the current package for a single scope, the functionality\nprovided by this pragma has been superseded by \"our\" declarations, available in Perl v5.6.0\nor later, and use of this pragma is discouraged.  See \"our\" in perlfunc.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "vars",
        "section": "",
        "mode": "man",
        "summary": "vars - Perl pragma to predeclare global variable names",
        "synopsis": "use vars qw($frob @mung %seen);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 22,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "vars - Perl pragma to predeclare global variable names\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use vars qw($frob @mung %seen);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "NOTE: For use with variables in the current package for a single scope, the functionality\nprovided by this pragma has been superseded by \"our\" declarations, available in Perl v5.6.0\nor later, and use of this pragma is discouraged.  See \"our\" in perlfunc.\n\nThis pragma will predeclare all the variables whose names are in the list, allowing you to\nuse them under \"use strict\", and disabling any typo warnings for them.\n\nUnlike pragmas that affect the $^H hints variable, the \"use vars\" and \"use subs\" declarations\nare not lexically scoped to the block they appear in: they affect the entire package in which\nthey appear.  It is not possible to rescind these declarations with \"no vars\" or \"no subs\".\n\nPackages such as the AutoLoader and SelfLoader that delay loading of subroutines within\npackages can create problems with package lexicals defined using \"my()\". While the vars\npragma cannot duplicate the effect of package lexicals (total transparency outside of the\npackage), it can act as an acceptable substitute by pre-declaring global symbols, ensuring\ntheir availability to the later-loaded routines.\n\nSee \"Pragmatic Modules\" in perlmodlib.\n\n\n\nperl v5.34.0                                 2025-07-25                                  vars(3perl)",
                "subsections": []
            }
        }
    }
}