PPIx::...utline(3pm)
π¦ PPIx::EditorTools::Outline π¦
okay bestie, so this page is literally PPIx::...utline(3pm) β it lives in the User Contributed Perl Documentation section and it's giving "let me peek inside your Perl code and tell you what's in there" energy. β¨
πΈ NAME πΈ
PPIx::EditorTools::Outline β Collect use pragmata, modules, subroutiones, methods, attributes π
(and yes, subroutiones is spelled exactly like that in here, we don't touch it, it's iconic π
)
π VERSION π
version 0.21 π
β¨ SYNOPSIS β¨
no cap, here's the whole vibe:
my $outline = PPIx::EditorTools::Outline->new->find(
code => "package TestPackage;\nsub x { 1;\n"
);
print Dumper $outline;
likeβ¦ it just hands you the tea π
π DESCRIPTION π
Return a list of pragmatas, modules, methods, attributes of a PPI::Document.
that's the whole thing. it takes a PPI::Document and spills all the structural gossip inside it. π«β¨
π METHODS π
new()β the Constructor, bestie. Generally shouldn't be called with any arguments. so likeβ¦ don't. πfind()β the main character fr fr. here's how you call it:
find( ppi => PPI::Document $ppi )
or
find( code => Str $code )
Accepts either a PPI::Document to process or a string containing the code (which will be converted into a PPI::Document) to process. Return a reference to a hash. that's it, that's the whole flex. π
π Internal Methods π
these are the behind-the-scenes girlies, not for you, iykyk:
_Moo_Attributes_Moo_PkgName
π₯ SEE ALSO π₯
This class inherits from PPIx::EditorTools. Also see App::EditorTools, Padre, and PPI. go read those too, they're part of the friend group π«Ά
π AUTHORS π
shoutout to the legends who built this, periodt:
- Steffen Mueller
smueller@cpan.org - Mark Grimes
mgrimes@cpan.org - Ahmad M. Zawawi <ahmad.zawawi@gmail.com>
- Gabor Szabo <gabor@szabgab.com>
- Yanick Champoux <yanick@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017, 2014, 2012 by The Padre development team as listed in Padre.pm..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. ποΈ
real talk: that's the standard Perl license deal β free to use, free to remix, same terms as Perl 5 itself. no drama. π
and that's the whole page, bestie! π this cutie is documented as part of perl v5.34.0, dated 2022-06-17 β tysm for reading, mwah! πβ¨π¦
π¦ where this page comes from
- debian bookworm: libppix-editortools-perl 0.21-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libppix-editortools-perl 0.21-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libppix-editortools-perl 0.21-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libppix-editortools-perl 0.21-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms