PPI::To...::Double(3)
π NAME π
PPI::Token::Quote::Double β a standard "double quote" token, bestie. That's the whole vibe. It's the Perl-verse token class for your "..." strings and it's lowkey iconic π
π¦ INHERITANCE π¦
okay so the family tree is giving legacy royalty:
PPI::Token::Quote::Double
isa PPI::Token::Quote
isa PPI::Token
isa PPI::Element
so it's a PPI::Token::Quote, which is a PPI::Token, which is a PPI::Element. Chain of command fr fr β¨
πΈ DESCRIPTION πΈ
A PPI::Token::Quote::Double object represents a double-quoted interpolating string. periodt.
The string is treated as a single entity β PPI will not try to understand what is in the string during the parsing process. Like, it sees the quotes, it clocks the whole thing as one unit, and it does not peer inside. no cap π
π METHODS π
There are several methods available for PPI::Token::Quote::Double, beyond those provided by the parent PPI::Token::Quote, PPI::Token and PPI::Element classes. So yes, you get the inherited stuff plus these. obsessed π
β¨ interpolations β¨
The interpolations method checks to see if the double quote actually contains any interpolated variables.
Returns true if the string contains interpolations, or false if not. simple as that π«Ά
β¨ simplify β¨
For various reasons, some people find themselves compelled to have their code in the simplest form possible. (respect, honestly π§)
The simplify method will, if possible, modify a simple double-quoted string token in place, turning it into the equivalent single-quoted string. If the token is modified, it is reblessed into the PPI::Token::Quote::Single package.
Because the length of the content is not changed, there is no need to call the document's flush_locations method. thank god, one less thing π
The object itself is returned as a convenience. cute lil return value, love that for us π
β SUPPORT β
See the support section in the main module. that's the whole thing, go look at the main module bestie π
π AUTHOR π
Adam Kennedy <adamk@cpan.org>
π 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.
and that's the whole page, bestie!! this one came from perl v5.42.0, dated 2026-01-17, and the page itself is PPI::To...::Double(3) β mwah, go write some double-quoted strings π
β¨
π¦ 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