Course of Raku / Advanced / More about built-in types / Quoting constructs 🆕 / Exercises

A raw string

Problem

Using the most literal quoting form, print the text $x and \n exactly as written, with no variable interpolation and no escape processing.

Example

The program prints:

$x and \n

Solution

See the solution

Course navigation

Heredocs   |   Solution: A raw string