Course of Raku / Essentials / Strings / String concatenation

Quiz 1: Concatenating strings

In the below operations, different concatenations happen. Complete the missing parts.

. my $first-name = 'Edgar';
. my $middle-name = 'Allan';
= my $last-name ␣ 'Poe';
~ ~ my $name = $first-name ␣ ' ' ␣ $last-name;
- ~ ~ - ~ ~ - my $full-name = $first␣name ␣ ' ' ␣ $middle␣name ␣ ' ' ␣ $last␣name;
. say $full-name;
~ ~ say $first-name ␣ ' ' ␣ $last-name;
~ say 'E. ' ␣ $last-name;

Course navigation

Strings   |   Strings / Variable interpolation


💪 Or jump directly to the exercises to this section.

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