PPIx::R...re::Main(3)

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

okay bestie, so this is a page from the User Contributed Perl Documentation, and the module it's yelling about is PPIx::Regexp::Structure::Main πŸŽ€ β€” it's in the PPIx::Regexp family, it's giving parser internals, it's giving abstract class realness.


✨ NAME ✨

PPIx::Regexp::Structure::Main β€” bestie, this one represents a regular expression proper, or a substitution. that's the whole job. that's the vibe. πŸ’…


🌸 SYNOPSIS 🌸

like, here's how you'd actually touch this thing:

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

look at that little qr{foo}smx go πŸ¦‹ it's literally the cutest regex in the whole wide world.


🧚 INHERITANCE 🧚

  • PPIx::Regexp::Structure::Main is a PPIx::Regexp::Structure. periodt.
  • PPIx::Regexp::Structure::Main is the parent of PPIx::Regexp::Structure::Regexp and PPIx::Regexp::Structure::Replacement. it's mother, fr fr πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so this class is abstract, which means you don't just, like, instantiate it and go. it represents one of the top-level structures in the expression. and both PPIx::Regexp::Structure::Regexp and PPIx::Regexp::Structure::Replacement are derived from it. main character energy, but like, the parent kind. 🌈


πŸ’… METHODS πŸ’…

this class provides the following public methods. anything not documented here is private, and unsupported in the sense that the author reserves the right to change or remove them without notice. so like, don't get attached to undocumented methods, bestie 😭

πŸ“ delimiters

this method returns a string representing the delimiters of a regular expression or substitution string. so in the case of something like s/foo/bar/, it will return '//' for both the regular expression and the replacement. both!! equal treatment!! we love to see it πŸ’–

πŸŽ€ interpolates

this method returns true if the regular expression or replacement interpolates, and false otherwise. and ngl, all it really does is check whether the ending delimiter is a single quote. that's it. that's the whole method. lowkey iconic for how simple it is πŸ¦‹


🫢 SUPPORT 🫢

support is by the author, bestie. so if something's busted, please file bug reports at <https://github.com/trwyant/perl-PPIx-Regexp/issues> β€” or in electronic mail to the author. don't suffer in silence, that's not the vibe 😭


πŸ‘‘ 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. (yes bestie, that's the legal way of saying "no promises, good luck" πŸ™ˆ)


okay that's the whole page, nothing skipped, every option-less method accounted for, we ate and left no crumbs 🍽️✨

and that's a wrap! this was pulled from perl v5.42.2, dated 2026-06-15 πŸ’œ go forth and parse some regexes, bestie πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from