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 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