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