PPIx::R...::Switch(3)

PPIx::Regexp::Structure::Switch πŸ’–

okay bestie, you found the manpage for PPIx::Regexp::Structure::Switch (that's the PPIx::R...::Switch(3) situation, the name's just living its abbreviated truth in the header) and honestly? it's a short one, so let's get into it 🫢


✨ NAME ✨

PPIx::Regexp::Structure::Switch β€” represent a switch, no cap πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

like, here's the whole vibe in code:

use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{(?(1)foo|bar)}smx' )
    ->print();

that's it, that's the demo, and it ate πŸ“


πŸ¦‹ INHERITANCE πŸ¦‹

  • PPIx::Regexp::Structure::Switch is a PPIx::Regexp::Structure β€” it's giving very much "child of Structure" energy, iykyk.
  • PPIx::Regexp::Structure::Switch has no descendants. it is a leaf node, an only child, the main character with zero offspring 😭✨

🌸 DESCRIPTION 🌸

so bestie, this class represents a switch, which is also known as a conditional expression β€” you know, the (?(1)foo|bar) kind of moment.

and here's the lowkey important part: the condition will be the first child. like, first in line, front of the queue, the eldest sibling, periodt πŸ‘‘


πŸ’œ METHODS πŸ’œ

ngl, this class provides no public methods beyond the ones it gets from its superclass. it's not doing extra credit, it's not showing off, it's just vibing with what it inherited. iconic honestly πŸ’…


🫢 SUPPORT 🫢

Support is by the author. so if something's broken, don't just scream into the void β€” please file bug reports at:

or, if you're feeling old-school romantic, send electronic mail to the author πŸ“§


πŸ‘‘ AUTHOR πŸ‘‘

Thomas R. Wyant, III β€” harryfmudd at comcast dot net πŸ’Œ


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. (translation: no promises, bestie, it's giving "as-is" 😭)

and that's the whole page, you're officially caught up πŸ’–

signing off: this was perl v5.42.2, dated 2026-06-15 β€” go slay some regexes, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from