# perldoc > Pod::Simple::PullParserEndToken

---
type: CommandReference
command: Pod::Simple::PullParserEndToken
mode: perldoc
section: 
source: perldoc
---

## Quick Reference
- `$token->tagname` — returns tagname of end-token (e.g., "head1")
- `$token->tagname(*somestring*)` — sets tagname
- `$token->tag(...)` — shortcut for `$token->tagname(...)`
- `$token->is_tag(*somestring*)` — checks if tagname equals string
- `$token->is_tagname(*somestring*)` — same as `is_tag`
- `Pod::Simple::PullParserEndToken->new(*tagname*)` — construct a new end-token object (rarely needed)
- Inherits all methods from `Pod::Simple::PullParserToken`
- Used when parsing POD: each directive (e.g., `=head1`) produces a start-token, content tokens, and an end-token

## Name
End-tokens from `Pod::Simple::PullParser`.

## Synopsis
(See `Pod::Simple::PullParser`)

## Options
- `$token->tagname` — returns the tagname of the end-token object (e.g., "head1")
- `$token->tagname(*somestring*)` — changes the tagname for this end-token object (rarely needed)
- `$token->tag(...)` — shortcut for `$token->tagname(...)`
- `$token->is_tag(*somestring*)` — shortcut for `$token->tag() eq *somestring*`
- `$token->is_tagname(*somestring*)` — same as `is_tag`
- `Pod::Simple::PullParserEndToken->new(*tagname*)` — constructs a new end-token object (rarely needed)

## See Also
- [Pod::Simple::PullParserToken](http://localhost/phpMan.php/perldoc/Pod%3A%3ASimple%3A%3APullParserToken/markdown)
- [Pod::Simple](http://localhost/phpMan.php/perldoc/Pod%3A%3ASimple/markdown)
- [Pod::Simple::Subclassing](http://localhost/phpMan.php/perldoc/Pod%3A%3ASimple%3A%3ASubclassing/markdown)

## Exit Codes
(Not applicable)