{
    "mode": "perldoc",
    "parameter": "subs",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/subs/json",
    "generated": "2026-06-13T21:38:36Z",
    "synopsis": "use subs qw(frob);\nfrob 3..10;",
    "sections": {
        "NAME": {
            "content": "subs - Perl pragma to predeclare subroutine names\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use subs qw(frob);\nfrob 3..10;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This will predeclare all the subroutines whose names are in the list, allowing you to use them\nwithout parentheses (as list operators) even before they're declared.\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\nSee \"Pragmatic Modules\" in perlmodlib and \"strict subs\" in strict.\n",
            "subsections": []
        }
    },
    "summary": "subs - Perl pragma to predeclare subroutine names",
    "flags": [],
    "examples": [],
    "see_also": []
}