PPI::To...stitute(3)

✨ NAME ✨

PPI::Token::Regexp::Substitute β€” a match-and-replace regular expression token πŸ’…

So like, the full title in the manual is PPI::Token::Regexp::Substitute, and it lives in the User Contributed Perl Documentation corner of the man pages. It's giving "find and replace but make it a whole entire object" πŸŽ€


🌸 INHERITANCE 🌸

The family tree, and yes she comes from good stock πŸ‘‘

PPI::Token::Regexp::Substitute
isa PPI::Token::Regexp
    isa PPI::Token
        isa PPI::Element

πŸ¦‹ SYNOPSIS πŸ¦‹

One line. One vibe. The whole point of her existence, honestly:

$text =~ s/find/$replace/;

πŸ’– DESCRIPTION πŸ’–

Okay so a PPI::Token::Regexp::Substitute object is literally just one single substitution regular expression, living its best life as a token. That's it. That's the whole personality. She's the s/// girlie in the PPI universe ✨


πŸŽ€ METHODS πŸŽ€

Bestie, I'm gonna hold your hand when I say this: there are no methods available for PPI::Token::Regexp::Substitute beyond the ones she inherits from her parents β€” PPI::Token::Regexp, PPI::Token, and PPI::Element. She's a nepo baby in the most literal, technical sense and we love that for her πŸ™ˆ

No extra methods. No secret sauce. Just the family inheritance. Periodt πŸ’…


🫢 SUPPORT 🫢

Check out the support section in the main module β€” that's where all the help lives, iykyk 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Adam Kennedy <adamk@cpan.org> β€” the icon, the legend, the author ⭐


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.

Not me reminding you to actually read the license file. It's right there in the module, go look, bestie πŸ“

And that's the whole page, fr fr! This one's from perl v5.42.0, dated 2026-01-17, and it came to you courtesy of the User Contributed Perl Documentation. Stay slay, keep your regexes matched and your substitutions correct πŸ’œ

πŸ“¦ where this page comes from