1PPI::Statement::IncludeU:s:ePrerClo6n(t3r)ibuted Perl DoPcPuIm:e:nSttaattieomnent::Include::Perl6(3)
2
3
4
6 PPI::Statement::Include::Perl6 - Inline Perl 6 file section
7
9 use v6-alpha;
10
11 grammar My::Grammar {
12 ...
13 }
14
16 PPI::Statement::Include::Perl6
17 isa PPI::Statement::Include
18 isa PPI::Statement
19 isa PPI::Node
20 isa PPI::Element
21
23 A "PPI::Statement::Include::Perl6" is a special include statement that
24 indicates the start of a section of Perl 6 code inlined into a regular
25 Perl 5 code file.
26
27 The primary purpose of the class is to allow PPI to provide at least
28 basic support for "6 in 5" modules like v6.pm;
29
30 Currently, PPI only supports starting a Perl 6 block. It does not
31 currently support changing back to Perl 5 again. Additionally all POD
32 and __DATA__ blocks and __END__ blocks will be included in the Perl 6
33 string and will not be parsed by PPI.
34
35 perl6
36 The "perl6" method returns the block of Perl 6 code that is attached to
37 the "use v6...;" command.
38
40 - Write specific unit tests for this package
41
43 See the support section in the main module.
44
46 Adam Kennedy <adamk@cpan.org>
47
49 Copyright 2001 - 2011 Adam Kennedy.
50
51 This program is free software; you can redistribute it and/or modify it
52 under the same terms as Perl itself.
53
54 The full text of the license can be found in the LICENSE file included
55 with this module.
56
57
58
59perl v5.16.3 2011-02-26 PPI::Statement::Include::Perl6(3)