PPI::St...e::Given(3)
π PPI::St...e::Given β the manual page, bestie edition β¨
okay so we're doing PPI::St...e::Given(3) today and honestly? it's a whole vibe. it's short, it's sweet, it's giving "small class, big purpose." let's get into it π«Ά
πΈ NAME πΈ
PPI::Structure::Given β circular braces for a switch statement
like, literally the round brackets. the ( ) ones. for a given. that's the whole job and she does it flawlessly π
β¨ SYNOPSIS β¨
given ( something ) {
...
}
see that? the ( something ) part right there? that's her. that's the moment. main character energy π
π¦ INHERITANCE π¦
the family tree, and yes she's got good genes:
PPI::Structure::Given
isa PPI::Structure
isa PPI::Node
isa PPI::Element
so she's a PPI::Structure, which is a PPI::Node, which is a PPI::Element. iconic lineage tbh. the way that every ancestor just passes down their methods like family heirlooms π
π DESCRIPTION π
PPI::Structure::Given is the class used for circular braces that contain the thing to be matched in a switch statement.
that's it. that's the description. no cap. if you've got a switch statement and there's a thing being matched in some nice round braces, those braces are this class. she's the container for the matchable thing, and she's thriving π
π METHODS π
ngl this is the easiest section I've ever had to write:
PPI::Structure::Given has no methods beyond those provided by the standard PPI::Structure, PPI::Node and PPI::Element methods.
fr fr. zero custom methods. she inherits everything and adds nothing. minimalism. we love a low-maintenance queen π
π«Ά SUPPORT π«Ά
See the support section in the main module.
(go check the main module bestie, that's where all the help lives π)
β AUTHOR β
Adam Kennedy <adamk@cpan.org>
the legend himself. we stan π
π 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.
so basically: same terms as Perl itself, and if you want the receipts, the LICENSE file is right there in the module. read it, love it, respect it π
and that's the whole page, bestie! π§ this was perl v5.42.0, dated 2026-01-17 β catch you in the next manpage, mwah πβ¨
π¦ 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