PPI::To...uoteLike(3)
β¨ NAME β¨
PPI::Token::QuoteLike β the quote-like operator abstract base class π
(it's in section 3 of the manual, bestie, hence the (3) on the end, and yeah the header truncates it to PPI::To...uoteLike(3) like it's too cool for the whole name)
πΈ INHERITANCE πΈ
Okay so the family tree goes like this:
PPI::Token::QuoteLike
isa PPI::Token
isa PPI::Element
So it's a PPI::Token, which is a PPI::Element. Generational wealth, honestly. π
π DESCRIPTION π
Real talk: the PPI::Token::QuoteLike class is never instantiated. Like, never ever. It just sits there being a common abstract base class for the five quote-like operator classes, serving looks and structure. It's giving founder energy β it doesn't do the work, it makes the work possible. π«Ά
So in PPI, a "quote-like" is the set of quote-like things that exclude the string quotes and regular expressions. Yeah. That's the definition. It's a vibe check that says "you're quote-ish but not those quote-ish."
The subclasses of PPI::Token::QuoteLike are, and I need you to look at this lineup:
qw{}βPPI::Token::QuoteLike::Words`` βPPI::Token::QuoteLike::Backtickqx{}βPPI::Token::QuoteLike::Commandqr//βPPI::Token::QuoteLike::Regexp<FOO>βPPI::Token::QuoteLike::Readline
The names are, hopefully, obvious enough that nobody has to explain what each class is. Like, Words is words, bestie. See their pages for more details. π
Now here's the thing you might clock: the backtick and the command quote-like are treated separately, even though they do the same thing. And no, that's not a bug, that's intentional β¨ β they inherit from and are processed by two different parts of PPI's quote engine. Two different departments, same job description, classic corporate. π
π SUPPORT π
See the support section in the main module. (Yes, that's it. It's pointing you at the main character. Main module energy. π)
π AUTHOR π
Adam Kennedy <adamk@cpan.org> β shoutout, legend behaviour, no cap.
π COPYRIGHT π
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 ending the page with legal text like it's a yearbook signature π but fr fr, that's the whole thing.
Perl v5.42.0, dated 2026-01-17 β that's the version and the date this page came from, and with that, bestie, we are officially done here. Slay, stay quoting, mwah π πβ¨
π¦ where this page comes from
- fedora 44: perl-PPI 1.284-2.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