use strict; use warnings; use feature 'say'; my @words = ("one", "two", "three"); # join is the inverse of split say join("-", @words);
glue elements with a separator