1PPI::Token(3) User Contributed Perl Documentation PPI::Token(3)
2
3
4
6 PPI::Token - A single token of Perl source code
7
9 PPI::Token
10 isa PPI::Element
11
13 "PPI::Token" is the abstract base class for all Tokens. In PPI terms, a
14 "Token" is a PPI::Element that directly represents bytes of source
15 code.
16
18 set_content $string
19
20 The "set_content" method allows to set/change the string that the
21 "PPI::Token" object represents.
22
23 Returns the string you set the Token to
24
25 add_content $string
26
27 The "add_content" method allows you to add additional bytes of code to
28 the end of the Token.
29
30 Returns the new full string after the bytes have been added.
31
32 length
33
34 The "length" method returns the length of the string in a Token.
35
36
37
38perl v5.8.8 2006-09-23 PPI::Token(3)