{
    "content": [
        {
            "type": "text",
            "text": "# Pod::Simple::SimpleTree (perldoc)\n\n**Summary:** Pod::Simple::SimpleTree -- parse Pod into a simple parse tree\n\n**Synopsis:** % cat ptest.pod\n=head1 PIE\nI like B<pie>!\n% perl -MPod::Simple::SimpleTree -MData::Dumper -e \\\n\"print Dumper(Pod::Simple::SimpleTree->new->parsefile(shift)->root)\" \\\nptest.pod\n$VAR1 = [\n'Document',\n{ 'startline' => 1 },\n[\n'head1',\n{ 'startline' => 1 },\n'PIE'\n],\n[\n'Para',\n{ 'startline' => 3 },\n'I like ',\n[\n'B',\n{},\n'pie'\n],\n'!'\n]\n];\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (31 lines)\n- **DESCRIPTION** (10 lines)\n- **METHODS** (2 lines)\n- **Tree Contents** (9 lines)\n- **SEE ALSO** (6 lines)\n- **SUPPORT** (10 lines)\n- **COPYRIGHT AND DISCLAIMERS** (8 lines)\n- **AUTHOR** (10 lines)\n\n## Full Content\n\n### NAME\n\nPod::Simple::SimpleTree -- parse Pod into a simple parse tree\n\n### SYNOPSIS\n\n% cat ptest.pod\n\n=head1 PIE\n\nI like B<pie>!\n\n% perl -MPod::Simple::SimpleTree -MData::Dumper -e \\\n\"print Dumper(Pod::Simple::SimpleTree->new->parsefile(shift)->root)\" \\\nptest.pod\n\n$VAR1 = [\n'Document',\n{ 'startline' => 1 },\n[\n'head1',\n{ 'startline' => 1 },\n'PIE'\n],\n[\n'Para',\n{ 'startline' => 3 },\n'I like ',\n[\n'B',\n{},\n'pie'\n],\n'!'\n]\n];\n\n### DESCRIPTION\n\nThis class is of interest to people writing a Pod processor/formatter.\n\nThis class takes Pod and parses it, returning a parse tree made just of arrayrefs, and hashrefs,\nand strings.\n\nThis is a subclass of Pod::Simple and inherits all its methods.\n\nThis class is inspired by XML::Parser's \"Tree\" parsing-style, although it doesn't use exactly\nthe same LoL format.\n\n### METHODS\n\nAt the end of the parse, call \"$parser->root\" to get the tree's top node.\n\n### Tree Contents\n\nEvery element node in the parse tree is represented by an arrayref of the form: \"[\n*elementname*, \\%attributes, *...subnodes...* ]\". See the example tree dump in the Synopsis,\nabove.\n\nEvery text node in the tree is represented by a simple (non-ref) string scalar. So you can test\n\"ref($node)\" to see whether you have an element node or just a text node.\n\nThe top node in the tree is \"[ 'Document', \\%attributes, *...subnodes...* ]\"\n\n### SEE ALSO\n\nPod::Simple\n\nperllol\n\nThe \"Tree\" subsubsection in XML::Parser\n\n### SUPPORT\n\nQuestions or discussion about POD and Pod::Simple should be sent to the pod-people@perl.org mail\nlist. Send an empty email to pod-people-subscribe@perl.org to subscribe.\n\nThis module is managed in an open GitHub repository, <https://github.com/perl-pod/pod-simple/>.\nFeel free to fork and contribute, or to clone <git://github.com/perl-pod/pod-simple.git> and\nsend patches!\n\nPatches against Pod::Simple are welcome. Please send bug reports to\n<bug-pod-simple@rt.cpan.org>.\n\n### COPYRIGHT AND DISCLAIMERS\n\nCopyright (c) 2002 Sean M. Burke.\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n\nThis program is distributed in the hope that it will be useful, but without any warranty;\nwithout even the implied warranty of merchantability or fitness for a particular purpose.\n\n### AUTHOR\n\nPod::Simple was created by Sean M. Burke <sburke@cpan.org>. But don't bother him, he's retired.\n\nPod::Simple is maintained by:\n\n*   Allison Randal \"allison@perl.org\"\n\n*   Hans Dieter Pearcey \"hdp@cpan.org\"\n\n*   David E. Wheeler \"dwheeler@cpan.org\"\n\n"
        }
    ],
    "structuredContent": {
        "command": "Pod::Simple::SimpleTree",
        "section": "",
        "mode": "perldoc",
        "summary": "Pod::Simple::SimpleTree -- parse Pod into a simple parse tree",
        "synopsis": "% cat ptest.pod\n=head1 PIE\nI like B<pie>!\n% perl -MPod::Simple::SimpleTree -MData::Dumper -e \\\n\"print Dumper(Pod::Simple::SimpleTree->new->parsefile(shift)->root)\" \\\nptest.pod\n$VAR1 = [\n'Document',\n{ 'startline' => 1 },\n[\n'head1',\n{ 'startline' => 1 },\n'PIE'\n],\n[\n'Para',\n{ 'startline' => 3 },\n'I like ',\n[\n'B',\n{},\n'pie'\n],\n'!'\n]\n];",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 31,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "Tree Contents",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SUPPORT",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND DISCLAIMERS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 10,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Pod::Simple::SimpleTree -- parse Pod into a simple parse tree\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "% cat ptest.pod\n\n=head1 PIE\n\nI like B<pie>!\n\n% perl -MPod::Simple::SimpleTree -MData::Dumper -e \\\n\"print Dumper(Pod::Simple::SimpleTree->new->parsefile(shift)->root)\" \\\nptest.pod\n\n$VAR1 = [\n'Document',\n{ 'startline' => 1 },\n[\n'head1',\n{ 'startline' => 1 },\n'PIE'\n],\n[\n'Para',\n{ 'startline' => 3 },\n'I like ',\n[\n'B',\n{},\n'pie'\n],\n'!'\n]\n];\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This class is of interest to people writing a Pod processor/formatter.\n\nThis class takes Pod and parses it, returning a parse tree made just of arrayrefs, and hashrefs,\nand strings.\n\nThis is a subclass of Pod::Simple and inherits all its methods.\n\nThis class is inspired by XML::Parser's \"Tree\" parsing-style, although it doesn't use exactly\nthe same LoL format.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "At the end of the parse, call \"$parser->root\" to get the tree's top node.\n",
                "subsections": []
            },
            "Tree Contents": {
                "content": "Every element node in the parse tree is represented by an arrayref of the form: \"[\n*elementname*, \\%attributes, *...subnodes...* ]\". See the example tree dump in the Synopsis,\nabove.\n\nEvery text node in the tree is represented by a simple (non-ref) string scalar. So you can test\n\"ref($node)\" to see whether you have an element node or just a text node.\n\nThe top node in the tree is \"[ 'Document', \\%attributes, *...subnodes...* ]\"\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Pod::Simple\n\nperllol\n\nThe \"Tree\" subsubsection in XML::Parser\n",
                "subsections": []
            },
            "SUPPORT": {
                "content": "Questions or discussion about POD and Pod::Simple should be sent to the pod-people@perl.org mail\nlist. Send an empty email to pod-people-subscribe@perl.org to subscribe.\n\nThis module is managed in an open GitHub repository, <https://github.com/perl-pod/pod-simple/>.\nFeel free to fork and contribute, or to clone <git://github.com/perl-pod/pod-simple.git> and\nsend patches!\n\nPatches against Pod::Simple are welcome. Please send bug reports to\n<bug-pod-simple@rt.cpan.org>.\n",
                "subsections": []
            },
            "COPYRIGHT AND DISCLAIMERS": {
                "content": "Copyright (c) 2002 Sean M. Burke.\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n\nThis program is distributed in the hope that it will be useful, but without any warranty;\nwithout even the implied warranty of merchantability or fitness for a particular purpose.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Pod::Simple was created by Sean M. Burke <sburke@cpan.org>. But don't bother him, he's retired.\n\nPod::Simple is maintained by:\n\n*   Allison Randal \"allison@perl.org\"\n\n*   Hans Dieter Pearcey \"hdp@cpan.org\"\n\n*   David E. Wheeler \"dwheeler@cpan.org\"\n",
                "subsections": []
            }
        }
    }
}