1Pod::Simple::PullParserSPtearrltTPorkoegnr(a3mpmme)rs RPeofde:r:eSnicmeplGeu:i:dPeullParserStartToken(3pm)
2
3
4
6 Pod::Simple::PullParserStartToken -- start-tokens from
7 Pod::Simple::PullParser
8
10 (See Pod::Simple::PullParser)
11
13 When you do $parser->get_token on a Pod::Simple::PullParser object, you
14 might get an object of this class.
15
16 This is a subclass of Pod::Simple::PullParserToken and inherits all its
17 methods, and adds these methods:
18
19 $token->tagname
20 This returns the tagname for this start-token object. For example,
21 parsing a "=head1 ..." line will give you a start-token with the
22 tagname of "head1", token(s) for its content, and then an end-token
23 with the tagname of "head1".
24
25 $token->tagname(somestring)
26 This changes the tagname for this start-token object. You probably
27 won't need to do this.
28
29 $token->tag(...)
30 A shortcut for $token->tagname(...)
31
32 $token->is_tag(somestring) or $token->is_tagname(somestring)
33 These are shortcuts for "$token->tag() eq somestring"
34
35 $token->attr(attrname)
36 This returns the value of the attrname attribute for this start-
37 token object, or undef.
38
39 For example, parsing a L<Foo/"Bar"> link will produce a start-token
40 with a "to" attribute with the value "Foo", a "type" attribute with
41 the value "pod", and a "section" attribute with the value "Bar".
42
43 $token->attr(attrname, newvalue)
44 This sets the attrname attribute for this start-token object to
45 newvalue. You probably won't need to do this.
46
47 $token->attr_hash
48 This returns the hashref that is the attribute set for this start-
49 token. This is useful if (for example) you want to ask what all
50 the attributes are -- you can just do "keys %{$token->attr_hash}"
51
52 You're unlikely to ever need to construct an object of this class for
53 yourself, but if you want to, call
54 "Pod::Simple::PullParserStartToken->new( tagname, attrhash )"
55
57 Pod::Simple::PullParserToken, Pod::Simple, Pod::Simple::Subclassing
58
60 Pod::Simple::PullParserToken, Pod::Simple, Pod::Simple::Subclassing
61
63 Questions or discussion about POD and Pod::Simple should be sent to the
64 pod-people@perl.org mail list. Send an empty email to
65 pod-people-subscribe@perl.org to subscribe.
66
67 This module is managed in an open GitHub repository,
68 http://github.com/theory/pod-simple/ <http://github.com/theory/pod-
69 simple/>. Feel free to fork and contribute, or to clone
70 git://github.com/theory/pod-simple.git <git://github.com/theory/pod-
71 simple.git> and send patches!
72
73 Patches against Pod::Simple are welcome. Please send bug reports to
74 <bug-pod-simple@rt.cpan.org>.
75
77 Copyright (c) 2002 Sean M. Burke.
78
79 This library is free software; you can redistribute it and/or modify it
80 under the same terms as Perl itself.
81
82 This program is distributed in the hope that it will be useful, but
83 without any warranty; without even the implied warranty of
84 merchantability or fitness for a particular purpose.
85
87 Pod::Simple was created by Sean M. Burke <sburke@cpan.org>. But don't
88 bother him, he's retired.
89
90 Pod::Simple is maintained by:
91
92 · Allison Randal "allison@perl.org"
93
94 · Hans Dieter Pearcey "hdp@cpan.org"
95
96 · David E. Wheeler "dwheeler@cpan.org"
97
98
99
100perl v5.12.4 2011-06P-o0d7::Simple::PullParserStartToken(3pm)