1PPI::Token::Data(3)   User Contributed Perl Documentation  PPI::Token::Data(3)
2
3
4

NAME

6       PPI::Token::Data - The actual data in the __DATA__ section of a file
7

INHERITANCE

9         PPI::Token::Data
10         isa PPI::Token
11             isa PPI::Element
12

DESCRIPTION

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

METHODS

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       The "handle" method returns a IO::String handle that allows you to do
27       all the normal handle-y things to the contents of the __DATA__ section
28       of the file.
29
30       Unlike in perl itself, this means you can also do things like "print"
31       new data onto the end of the __DATA__ section, or modify it with any
32       other process that can accept an IO::Handle as input or output.
33
34       Returns an IO::String object.
35

SUPPORT

37       See the support section in the main module.
38

AUTHOR

40       Adam Kennedy <adamk@cpan.org>
41
43       Copyright 2001 - 2011 Adam Kennedy.
44
45       This program is free software; you can redistribute it and/or modify it
46       under the same terms as Perl itself.
47
48       The full text of the license can be found in the LICENSE file included
49       with this module.
50
51
52
53perl v5.32.1                      2021-01-27               PPI::Token::Data(3)
Impressum