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 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