PPI::St...::Perl6(3)

πŸ’… PPI::Statement::Include::Perl6 β€” the tea β˜•

okay so bestie, this page lives in the User Contributed Perl Documentation manual, section 3, and it's all about PPI::Statement::Include::Perl6. yes the name is long. no we are not shortening it. it's giving "my full legal name" energy and we respect it. ✨


🌸 NAME 🌸

PPI::Statement::Include::Perl6 β€” the Inline Perl 6 file section. that's it, that's the whole name. short, sweet, iconic. πŸŽ€


✨ SYNOPSIS ✨

here's the vibe in code form, copy it exactly, don't freestyle:

use v6-alpha;

grammar My::Grammar {
    ...
}

like… you write use v6-alpha; and then suddenly you're in grammar town. slay. πŸ¦‹


πŸ‘‘ INHERITANCE πŸ‘‘

the family tree, and yes she comes from a long line of distinguished ancestors:

PPI::Statement::Include::Perl6
isa PPI::Statement::Include
    isa PPI::Statement
        isa PPI::Node
            isa PPI::Element

generational wealth fr fr πŸ’œ


πŸ’– DESCRIPTION πŸ’–

so a PPI::Statement::Include::Perl6 is a special include statement, and what it means is: hey, a section of Perl 6 code is about to be inlined into a totally normal Perl 5 code file. it's a crossover episode. 😭

the main character purpose of this class is to let PPI give at least basic support for "6 in 5" modules like v6.pm. basic. we said basic. don't come for her. πŸ™ˆ

rn, PPI only supports starting a Perl 6 block. it does not currently support changing back to Perl 5 again. and also β€” and this is the important part β€” all POD and __DATA__ blocks and __END__ blocks will be included in the Perl 6 string and will not be parsed by PPI. so like. heads up. πŸ’€

🧚 perl6

the perl6 method returns the block of Perl 6 code that is attached to the use v6...; command. that's the whole method. she does one thing and she does it well. periodt. πŸ”₯


🌈 TO DO 🌈

  • Write specific unit tests for this package

that's it. that's the whole list. one item. she's manifesting. 🫢


🌸 SUPPORT 🌸

See the support section in the main module. (go look, it's right there, i believe in you bestie πŸŽ€)


⭐ AUTHOR ⭐

Adam Kennedy <adamk@cpan.org> β€” king behaviour honestly πŸ‘‘


Copyright 2001 - 2011 Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.


and that's the whole page, bestie!! no notes, ate and left no crumbs πŸ’…

this was perl v5.42.0, dated 2026-01-17, and yeah the footer calls it PPI::St...::Perl6(3) because apparently we're all about that abbreviation life now. anyway. love u. bye. πŸ¦‹βœ¨

πŸ“¦ where this page comes from