PPI::St...t::Given(3)

πŸ’– PPI::Statement::Given πŸ’–

okay so bestie, welcome to the Perl documentation for PPI::Statement::Given β€” straight outta the User Contributed Perl Documentation collection, and yes it's giving niche-but-iconic energy fr fr πŸŽ€


✨ NAME ✨

PPI::Statement::Given β€” a given-when statement πŸ¦‹


✨ SYNOPSIS ✨

given ( foo ) {
    say $_;
}

look at that. chef's kiss. no notes. πŸ’…


🌸 INHERITANCE 🌸

the family tree is giving royalty, ok? πŸ‘‘

PPI::Statement::Given
isa PPI::Statement
    isa PPI::Node
        isa PPI::Element

✨ DESCRIPTION ✨

so like, PPI::Statement::Given objects are the whole entire point of describing switch statements β€” as described in perlsyn, bestie, go read it, it's right there 😌

that's it. that's the description. short queen energy. πŸ’œ


🌈 METHODS 🌈

ngl this is the chillest section ever: PPI::Statement::Given has no methods beyond the ones you already get from the standard PPI::Structure, PPI::Node and PPI::Element methods. it literally just inherited everything and said "I'm good, thanks" ✨


πŸŽ€ TO DO πŸŽ€

  • Write unit tests for this package
not me noticing the unit tests haven't been written yet 😭 it's on the list bestie, it's on the list.

🫢 SUPPORT 🫢

See the support section in the main module. (iykyk πŸ’–)


πŸ‘‘ AUTHOR πŸ‘‘

Adam Kennedy <adamk@cpan.org>


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!! 🌟 perl v5.42.0, dated 2026-01-17 β€” big slay, big legacy, mwah πŸ’‹ go write those unit tests, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from