1PPI::Document::FragmentU(s3e)r Contributed Perl DocumentaPtPiIo:n:Document::Fragment(3)
2
3
4

NAME

6       PPI::Document::Fragment - A fragment of a Perl Document
7

DESCRIPTION

9       In some situations you might want to work with a fragment of a larger
10       document. "PPI::Document::Fragment" is a class intended for this pur‐
11       pose.  It is functionally almost identical to a normal PPI::Document,
12       except that it is not possible to get line/column positions for the
13       elements within it, and it does not represent a scope.
14

METHODS

16       index_locations
17
18       Unlike when called on a PPI::Document object, you should not be
19       attempting to find locations of things within a PPI::Document::Frag‐
20       ment, and thus any call to the "index_locations" will print a warning
21       and return "undef" instead of attempting to index the locations of the
22       Elements.
23

TO DO

25       Integrate this into the rest of PPI so it has actual practical uses.
26       The most obvious would be to implement arbitrary cut/copy/paste more
27       easily.
28

SUPPORT

30       See the support section in the main module.
31

AUTHOR

33       Adam Kennedy <adamk@cpan.org>
34
36       Copyright 2001 - 2006 Adam Kennedy.
37
38       This program is free software; you can redistribute it and/or modify it
39       under the same terms as Perl itself.
40
41       The full text of the license can be found in the LICENSE file included
42       with this module.
43
44
45
46perl v5.8.8                       2006-09-23        PPI::Document::Fragment(3)
Impressum