PPIx::R...:Switch(3)
π PPIx::Regexp::Token::GroupType::Switch(3) π
okay so bestie, welcome to the User Contributed Perl Documentation section, and today's main character is PPIx::Regexp::Token::GroupType::Switch. she's a little token class with a big job and honestly? she ate. π
β¨ NAME β¨
PPIx::Regexp::Token::GroupType::Switch β Represent the introducing characters for a switch
π¦ SYNOPSIS π¦
like, here's the vibe in code form:
use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{(?(1)foo|bar)}smx' )
->print();
πΈ INHERITANCE πΈ
PPIx::Regexp::Token::GroupType::Switch is a PPIx::Regexp::Token::GroupType. it's giving nepo baby in the best way β she inherited everything from her parent class. π
and the family tree stops there, because PPIx::Regexp::Token::GroupType::Switch has no descendants. she's a leaf node, she's an only child, she's thriving. π±
π DESCRIPTION π
so here's what this class actually is: it represents the characters that come right after a left parenthesis when those characters are introducing a switch.
now, technically β strictly speaking, bestie, and I need you to hear me on this β those characters are ?(. BUT. this class only takes the ?. just the one. she said "I'm not carrying the paren, that's someone else's job." π
π METHODS π
this class provides no public methods beyond those provided by its superclass. that's it. that's the whole section. she's lowkey a minimalist. π
π«Ά SUPPORT π«Ά
Support is by the author. like, the author personally. so if something's broken, please file bug reports at:
https://github.com/trwyant/perl-PPIx-Regexp/issues
or slide into the author's electronic mail. either way works, fr fr. β¨
π AUTHOR π
Thomas R. Wyant, III β harryfmudd at comcast dot net
π COPYRIGHT AND LICENSE π
Copyright (C) 2009-2023, 2025-2026 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
β οΈ bestie, note the whole "no warranty" thing β it's real, it's in the original, and it means what it says. she's free and she's fun but she is not making any promises. π
and that's the whole page, periodt. π¦ this was perl v5.42.2, dated 2026-06-15, and yes the version number is basically the manual's birthday. mwah. πβπ§
π¦ where this page comes from
- fedora 43: perl-PPIx-Regexp 0.092-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-PPIx-Regexp 0.092-1.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