Course of Raku / Advanced / More about built-in types

Quoting constructs 🆕

In the Essentials part you used single and double quotes to write strings. Those are the two most common members of a whole family of quoting constructs that Raku gives you for building strings with exactly the amount of processing you want — from “take every character literally” to “interpolate variables, escapes, and even embedded code”.

This section covers the three base forms q, qq, and Q, the adverbs that fine-tune them, and heredocs for multi-line text.

Topics in this section

Practice

Complete the quizzes that cover the contents of this section.

Exercises

This section contains 3 exercises. Examine all the topics of this section before doing the coding practice.

  1. A raw string
  2. A closure in a q string
  3. A heredoc

Course navigation

Solution: The domain part   |   q, qq, and Q