Strings In Depth6 / 18
Up next

Join a list

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

my @words = ("one", "two", "three");
# join is the inverse of split
say join("-", @words);
What you're solving

glue elements with a separator