PPIx::...edBrace(3pm)
β¨ NAME β¨
ok so bestie, welcome to the manual page for PPIx::...edBrace(3pm) π
β the super cute <pink>User Contributed Perl Documentation</pink> page all about PPIx::EditorTools::FindUnmatchedBrace, aka your personal PPI-based unmatched-brace-finder. it literally finds the braces you forgot to close. iconic behaviour tbh π
πΈ VERSION πΈ
this is version 0.21 β¨
π¦ SYNOPSIS π¦
here's the vibe, copy-paste girlies:
my $brace = PPIx::EditorTools::FindUnmatchedBrace->new->find(
code => "package TestPackage;\nsub x { 1;\n"
);
my $location = $brace->element->location;
like. look at her go. π
π DESCRIPTION π
she finds the location of unmatched braces in a PPI::Document. that's it. that's the whole job. and she eats every single time π₯
π METHODS π
new()
the constructor, bestie. the birth of the whole operation β¨
Generally shouldn't be called with any arguments. like, please don't. she doesn't need your baggage. π
find( ppi => PPI::Document $ppi )
find( code => Str $code )
ok so this one accepts either:
- a
PPI::Documentto process, passed asppiβ or - a string containing the code, passed as
code(which gets converted into aPPI::Documentfor you, no extra work required, we love a helpful queen π)
and then? she finds the location of unmatched braces. fr fr. π§
she returns a PPIx::EditorTools::ReturnObject with the unmatched brace β which is a PPI::Structure::Block β available via the element accessor. so $thing->element and you're living your main character moment. π
and if there is no unmatched brace? she returns undef. nothing. silence. a peaceful, balanced, brace-having file πβ¨
π SEE ALSO π
- this class inherits from
PPIx::EditorToolsβ she got it from her mama π«Ά - also go check out
App::EditorTools,Padre, andPPIβ the whole friend group, no cap β
π AUTHORS π
the legends themselves, in order:
- 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>
we stan every single one π πΈ
π 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. so like, go off, remix her, just keep the same energy periodt π
and that's the whole page, bestie π this lil masterpiece is from perl v5.34.0, dated 2022-06-17, and it lives in the <rainbow>PPIx::...edBrace(3pm)</rainbow> corner of your man pages. mwah. go close those braces. πβ¨
π¦ 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