1PPI::Token::Data(3) User Contributed Perl Documentation PPI::Token::Data(3)
2
3
4
6 PPI::Token::Data - The actual data in the __DATA__ section of a file
7
9 PPI::Token::Data
10 isa PPI::Token
11 isa PPI::Element
12
14 The "PPI::Token::Data" class is used to represent the actual data
15 inside a file's "__DATA__" section.
16
17 One "PPI::Token::Data" object is used to represent the entire of the
18 data, primarily so that it can provide a convenient handle directly to
19 the data.
20
22 "PPI::Token::Data" provides one method in addition to those provided by
23 our parent PPI::Token and PPI::Element classes.
24
25 handle
26
27 The "handle" method returns a IO::String handle that allows you to do
28 all the normal handle-y things to the contents of the __DATA__ section
29 of the file.
30
31 Unlike in perl itself, this means you can also do things like "print"
32 new data onto the end of the __DATA__ section, or modify it with any
33 other process that can accept an IO::Handle as input or output.
34
35 Returns an IO::String object.
36
38 See the support section in the main module.
39
41 Adam Kennedy <adamk@cpan.org>
42
44 Copyright 2001 - 2006 Adam Kennedy.
45
46 This program is free software; you can redistribute it and/or modify it
47 under the same terms as Perl itself.
48
49 The full text of the license can be found in the LICENSE file included
50 with this module.
51
52
53
54perl v5.8.8 2006-09-23 PPI::Token::Data(3)