{
    "mode": "perldoc",
    "parameter": "Pod::Simple::SimpleTree",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Pod%3A%3ASimple%3A%3ASimpleTree/json",
    "generated": "2026-06-03T17:16:12Z",
    "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];",
    "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": []
        }
    },
    "summary": "Pod::Simple::SimpleTree -- parse Pod into a simple parse tree",
    "flags": [],
    "examples": [],
    "see_also": []
}