1Pod::Simple::PullParserUSstearrtCToonkterni(b3u)ted PerlPoDdo:c:uSmiemnptlaet:i:oPnullParserStartToken(3)
2
3
4

NAME

6       Pod::Simple::PullParserStartToken -- start-tokens from Pod::Sim‐
7       ple::PullParser
8

SYNOPSIS

10       (See Pod::Simple::PullParser)
11

DESCRIPTION

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
49           start-token.  This is useful if (for example) you want to ask what
50           all the attributes are -- you can just do "keys
51           %{$token->attr_hash}"
52
53       You're unlikely to ever need to construct an object of this class for
54       yourself, but if you want to, call "Pod::Simple::PullParserStartTo‐
55       ken->new( tagname, attrhash )"
56

SEE ALSO

58       Pod::Simple::PullParserToken, Pod::Simple, Pod::Simple::Subclassing
59
61       Copyright (c) 2002 Sean M. Burke.  All rights reserved.
62
63       This library is free software; you can redistribute it and/or modify it
64       under the same terms as Perl itself.
65
66       This program is distributed in the hope that it will be useful, but
67       without any warranty; without even the implied warranty of mer‐
68       chantability or fitness for a particular purpose.
69

AUTHOR

71       Sean M. Burke "sburke@cpan.org"
72
73
74
75perl v5.8.8                       2003-11-0P2od::Simple::PullParserStartToken(3)
Impressum