Course of Raku / 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.

Practice

Complete the quiz that covers the contents of this topic.

Exercises

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

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

Course navigation

Scalar variables / Names of the variables   |   String concatenation

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська