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
Exercises
This section contains 4 exercises. Examine all the topics of this section before going to the coding practice.
Course navigation
← Scalar variables / Names of the variables | String concatenation →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська