PPI::St...edBrace(3)
π
PPI::Statement::UnmatchedBrace β wait, that's the truncated one, bestie, the full name is PPI::Statement::UnmatchedBrace π
okay so this page lives in the User Contributed Perl Documentation section of the manual (section 3, if you're keeping score) and it's all about PPI::Statement::UnmatchedBrace, which is literally the class for an isolated unmatched brace. yes. that's the whole name. she's niche and she knows it. π
β¨ NAME β¨
PPI::Statement::UnmatchedBrace β Isolated unmatched brace π¦
πΈ SYNOPSIS πΈ
sub foo {
1;
}
} # <--- This is an unmatched brace
see that lonely little } at the bottom? nobody claimed her. she's unmatched. she's the whole point of this module. periodt. π
π§ INHERITANCE π§
PPI::Statement::UnmatchedBrace
isa PPI::Statement
isa PPI::Node
isa PPI::Element
it's giving family tree, it's giving legacy, it's giving four generations of Perl class hierarchy and she's the youngest. π«Ά
π DESCRIPTION π
okay so PPI::Statement::UnmatchedBrace is a miscellaneous utility class, which is the polite way of saying she doesn't really have a job-job, she's just here. Objects of this type should be rare β or honestly not exist at all β inside normal, valid PPI::Document objects. if you're seeing one of these in a healthy document, something is deeply sus. π
she can be a round ')', a square ']' or a curly '}' brace β this class genuinely does not distinguish between them. no shade, she just doesn't care. β¨
here's the lowkey important part: objects of this type are only allocated at a structural level, not a lexical level (because, bestie, they're lexically invalid anyway β that's the whole vibe). π©
the presence of a PPI::Statement::UnmatchedBrace indicates a broken or invalid document. or... maybe a bug in PPI? but far more likely a broken Document. :)
fr fr, that smiley :) at the end of the original is doing a lot of emotional labour and we should respect it. π
π METHODS π
PPI::Statement::UnmatchedBrace has no additional methods beyond the default ones provided by PPI::Statement, PPI::Node and PPI::Element.
that's it. that's the section. she inherits everything and adds nothing, and honestly? iconic behaviour. π
π SUPPORT π
see the support section in the main module. iykyk. β
π AUTHOR π
Adam Kennedy <adamk@cpan.org>
π COPYRIGHT π
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!! go forth and find your unmatched braces, or better yet, don't find them, because finding them means your document is broken π
this has been perl v5.42.0, dated 2026-01-17, signing off from your local PPI::Statement::UnmatchedBrace manpage β stay valid out there π¦β¨π
π¦ where this page comes from
- fedora 44: perl-PPI 1.284-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms