POD::SIMPLE::PULLPARSERSTARTTOKEN(3perl)
π Pod::Simple::PullParserStartToken β bestie edition π
okay so real talk: this is a page from the Perl Programmers Reference Guide, and the star of the show is Pod::Simple::PullParserStartToken. it's a whole little class and honestly? it's giving backstage-pass energy. let's go π
β¨ NAME β¨
Pod::Simple::PullParserStartToken β start-tokens from Pod::Simple::PullParser, no cap πΈ
π¦ SYNOPSIS π¦
(See Pod::Simple::PullParser)
like, that's the whole thing. go read its parent, bestie, that's where the plot is π
π DESCRIPTION π
so when you call $parser->get_token on a Pod::Simple::PullParser object, you might get back an object of this class. surprise! it's a start-token, it's iconic, it's here π
this is a subclass of Pod::Simple::PullParserToken, meaning it inherits literally all of its methods, and then it adds these extra ones on top. main character behavior honestly π
π the methods π
$token->tagnameβ returns the tagname for this start-token object. for example, if you parse a"=head1 ..."line, you'll get a start-token whose tagname is"head1", then token(s) for its content, and then an end-token whose tagname is"head1". the whole arc. the full story. slay π¦$token->tagname(somestring)β this changes the tagname for this start-token object. you probably won't need to do this, but the option is there, iykyk π€·βοΈ$token->tag(...)β a shortcut for$token->tagname(...). same vibe, shorter name, obsessed π«$token->is_tag(somestring)or$token->is_tagname(somestring)β these are shortcuts for"$token->tag() eq somestring". so like, a yes/no vibe check on the tag π―$token->attr(attrname)β returns the value of the attrname attribute for this start-token object, orundef. for example, parsing aL<Foo/"Bar">link will produce a start-token with a"to"attribute with the value"Foo", a"type"attribute with the value"pod", and a"section"attribute with the value"Bar". three attributes, one token, absolutely ate π$token->attr(attrname, newvalue)β this sets the attrname attribute for this start-token object to newvalue. you probably won't need to do this either, but go off π«Ά$token->attr_hashβ returns the hashref that is the attribute set for this start-token. this is useful if (for example) you want to ask what all the attributes are β you can just do"keys %{$token->attr_hash}"and boom, the whole list, go get your info bestie π
real talk though: you're unlikely to ever need to construct an object of this class for yourself. but if you want to, the move is: perl Pod::Simple::PullParserStartToken->new( tagname, attrhash ) do with that what you will π
π SEE ALSO π
Pod::Simple::PullParserToken, Pod::Simple, Pod::Simple::Subclassing
π SEE ALSO (yes, again) π
Pod::Simple::PullParserToken, Pod::Simple, Pod::Simple::Subclassing
(it said it twice in the original and honestly? it meant it twice. periodt. π)
π«Ά SUPPORT π«Ά
questions or discussion about POD and Pod::Simple? send them to the pod-people@perl.org mail list. to subscribe, send an empty email to pod-people-subscribe@perl.org. yes, empty. like, empty empty. it's giving mystery β¨
this module is managed in an open GitHub repository, <https://github.com/perl-pod/pod-simple/>. feel free to fork and contribute, or to clone <https://github.com/perl-pod/pod-simple.git> and send patches! πΈ
patches against Pod::Simple are welcome. please send bug reports to <bug-pod-simple@rt.cpan.org>. they want your bug reports, bestie, don't be shy π
π COPYRIGHT AND DISCLAIMERS π
Copyright (c) 2002 Sean M. Burke.
this library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π¦
this program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. so like, no promises, okay? the vibes are provided as-is π
π AUTHOR π
Pod::Simple was created by Sean M. Burke <sburke@cpan.org>. but don't bother him, he's retired. let the man rest, fr fr π
Pod::Simple is maintained by:
- Allison Randal
"allison@perl.org" - Hans Dieter Pearcey
"hdp@cpan.org" - David E. Wheeler
"dwheeler@cpan.org"
and that's the whole page, bestie!! this was page Pod::S...rtToken(3perl) from perl v5.44.0, dated 2026-10-17. go forth and parse your POD, you absolute legend πβ¨π
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms