Pod-Simple-Pullparsertoken

Pod::Simple::PullParserToken(3p) Perl Programmers Reference Guide

Pod-Simple-Pullparsertoken

Pod::Simple::PullParserToken(3p) Perl Programmers Reference Guide # Pod::Simple::PullParserToken(3p) Perl Programmers Reference Guide NNAAMMEE # Pod::Simple::PullParserToken -- tokens from Pod::Simple::PullParser SSYYNNOOPPSSIISS # Given a $parser that's an object of class Pod::Simple::PullParser (or a subclass)... while(my $token = $parser->get_token) { $DEBUG and print STDERR "Token: ", $token->dump, "\n"; if($token->is_start) { ...access $token->tagname, $token->attr, etc... } elsif($token->is_text) { ...access $token->text, $token->text_r, etc... } elsif($token->is_end) { ...access $token->tagname... } } (Also see Pod::Simple::PullParser) DDEESSCCRRIIPPTTIIOONN # When you do $parser->get_token on a Pod::Simple::PullParser, you should get an object of a subclass of Pod::Simple::PullParserToken. ...