{
    "mode": "perldoc",
    "parameter": "XML::Parser::Style::Subs",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser%3A%3AStyle%3A%3ASubs/json",
    "generated": "2026-06-10T16:29:38Z",
    "synopsis": "use XML::Parser;\nmy $p = XML::Parser->new(Style => 'Subs', Pkg => 'MySubs');\n$p->parsefile('foo.xml');\n{\npackage MySubs;\nsub foo {\n# start of foo tag\n}\nsub foo {\n# end of foo tag\n}\n}",
    "sections": {
        "NAME": {
            "content": "XML::Parser::Style::Subs - glue for handling element callbacks\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::Parser;\nmy $p = XML::Parser->new(Style => 'Subs', Pkg => 'MySubs');\n$p->parsefile('foo.xml');\n\n{\npackage MySubs;\n\nsub foo {\n# start of foo tag\n}\n\nsub foo {\n# end of foo tag\n}\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Each time an element starts, a sub by that name in the package specified by the Pkg option is\ncalled with the same parameters that the Start handler gets called with.\n\nEach time an element ends, a sub with that name appended with an underscore (\"\"), is called\nwith the same parameters that the End handler gets called with.\n\nNothing special is returned by parse.\n",
            "subsections": []
        }
    },
    "summary": "XML::Parser::Style::Subs - glue for handling element callbacks",
    "flags": [],
    "examples": [],
    "see_also": []
}