Strings In Depth3 / 18
Up next

Concatenate with .

use strict;
use warnings;
use feature 'say';

my $a = "foo";
my $b = "bar";
# . joins two strings
my $joined = $a . $b;
say $joined;
# .= appends in place
$joined .= "!";
say $joined;
What you're solving

. joins, .= appends