Course of Raku / Essentials / Variables and data types essentials

Strings

Let’s talk about strings. We already used strings in the previous programs. All of them are also called string literals. A string literal is some text in quotes:

say 'I am a string literal';

Of course, you can use a scalar variable to keep strings:

my $message = 'This is my message';

Let us see what other basic features we can learn about strings.

Topics in this section

Practice

Complete the 7 quizzes that cover the contents of this section.

Exercises

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

  1. Hello, Concatenation!
  2. Hello, Interpolation!
  3. Purchase table
  4. Name length

Course navigation

Solution: Correct the identifiers   |   String concatenation