September 2017
Beginner
402 pages
9h 52m
English
The ~ operator concatenates two strings, as follows.
say 'a' ~ 'b'; # ab
If the operands are not strings, they are converted to strings before the operation:
say 10 ~ 20;
This prints the 1020 string.
A form with assignment may also be quite useful in some applications:
my $string = 'Hello, ';$string ~= 'World!';say $string; # Hello, World!
Read now
Unlock full access