PPI::St...e::When(3)

πŸ’– PPI::St...e::When(3) πŸ’–

okay bestie, welcome to the PPI::St...e::When page from the User Contributed Perl Documentation β€” yes that's the manual name, and yes it's literally the whole vibe. sit down, hydrate, let's go 🫢


✨ NAME ✨

PPI::Structure::When β€” circular braces for a when statement

like, the curvy lil parenthesis energy but for when. iconic behavior honestly πŸŽ€


✨ SYNOPSIS ✨

when ( something ) {
    ...
}

that's it. that's the whole thing. no cap πŸ’…


🌸 INHERITANCE 🌸

PPI::Structure::When
isa PPI::Structure
    isa PPI::Node
        isa PPI::Element

it's giving family tree, it's giving legacy, it's giving main character descended from main characters πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

PPI::Structure::When is the class used for the circular braces that contain the thing to be matched in a when statement.

fr fr. those round brackets around the thing you're matching? yeah. that's this class. she's the container, she's the moment, she holds the matchable thing and she does it with grace 🌸


πŸ¦‹ METHODS πŸ¦‹

PPI::Structure::When has no methods beyond those provided by the standard PPI::Structure, PPI::Node and PPI::Element methods.

ngl she's a low-maintenance queen β€” everything she can do, she inherited. no extra methods, no extra drama, just the family traits ✨


πŸ’– SUPPORT πŸ’–

See the support section in the main module.

(go check the parent module bestie, that's where the support deets live 🫢)


🌈 AUTHOR 🌈

Adam Kennedy <adamk@cpan.org>

ty for your service king πŸ™


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.

okay so like, the license is serious business β€” same terms as Perl itself, and the full text lives in the LICENSE file that ships with this module. read it, bestie. it's the law πŸ’€

perl v5.42.0 Β· 2026-01-17 β€” mwah, that's a wrap, thanks for coming to my ted talk, go write some when statements πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from