{
    "content": [
        {
            "type": "text",
            "text": "# Pod::Simple::PullParserToken (perldoc)\n\n**Summary:** Pod::Simple::PullParserToken -- tokens from Pod::Simple::PullParser\n\n**Synopsis:** Given a $parser that's an object of class Pod::Simple::PullParser (or a subclass)...\nwhile(my $token = $parser->gettoken) {\n$DEBUG and print STDERR \"Token: \", $token->dump, \"\\n\";\nif($token->isstart) {\n...access $token->tagname, $token->attr, etc...\n} elsif($token->istext) {\n...access $token->text, $token->textr, etc...\n} elsif($token->isend) {\n...access $token->tagname...\n}\n}\n(Also see Pod::Simple::PullParser)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (18 lines)\n- **DESCRIPTION** (33 lines)\n- **SEE ALSO** (5 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::PullParserToken -- tokens from Pod::Simple::PullParser\n\n### SYNOPSIS\n\nGiven a $parser that's an object of class Pod::Simple::PullParser (or a subclass)...\n\nwhile(my $token = $parser->gettoken) {\n$DEBUG and print STDERR \"Token: \", $token->dump, \"\\n\";\nif($token->isstart) {\n...access $token->tagname, $token->attr, etc...\n\n} elsif($token->istext) {\n...access $token->text, $token->textr, etc...\n\n} elsif($token->isend) {\n...access $token->tagname...\n\n}\n}\n\n(Also see Pod::Simple::PullParser)\n\n### DESCRIPTION\n\nWhen you do $parser->gettoken on a Pod::Simple::PullParser, you should get an object of a\nsubclass of Pod::Simple::PullParserToken.\n\nSubclasses will add methods, and will also inherit these methods:\n\n$token->type\nThis returns the type of the token. This will be either the string \"start\", the string\n\"text\", or the string \"end\".\n\nOnce you know what the type of an object is, you then know what subclass it belongs to, and\ntherefore what methods it supports.\n\nYes, you could probably do the same thing with code like\n$token->isa('Pod::Simple::PullParserEndToken'), but that's not so pretty as using just\n$token->type, or even the following shortcuts:\n\n$token->isstart\nThis is a shortcut for \"$token->type() eq \"start\"\"\n\n$token->istext\nThis is a shortcut for \"$token->type() eq \"text\"\"\n\n$token->isend\nThis is a shortcut for \"$token->type() eq \"end\"\"\n\n$token->dump\nThis returns a handy stringified value of this object. This is useful for debugging, as in:\n\nwhile(my $token = $parser->gettoken) {\n$DEBUG and print STDERR \"Token: \", $token->dump, \"\\n\";\n...\n}\n\n### SEE ALSO\n\nMy subclasses: Pod::Simple::PullParserStartToken, Pod::Simple::PullParserTextToken, and\nPod::Simple::PullParserEndToken.\n\nPod::Simple::PullParser and Pod::Simple\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::PullParserToken",
        "section": "",
        "mode": "perldoc",
        "summary": "Pod::Simple::PullParserToken -- tokens from Pod::Simple::PullParser",
        "synopsis": "Given a $parser that's an object of class Pod::Simple::PullParser (or a subclass)...\nwhile(my $token = $parser->gettoken) {\n$DEBUG and print STDERR \"Token: \", $token->dump, \"\\n\";\nif($token->isstart) {\n...access $token->tagname, $token->attr, etc...\n} elsif($token->istext) {\n...access $token->text, $token->textr, etc...\n} elsif($token->isend) {\n...access $token->tagname...\n}\n}\n(Also see Pod::Simple::PullParser)",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 33,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SUPPORT",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND DISCLAIMERS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 10,
                "subsections": []
            }
        ]
    }
}