- or download this
my @words = ('one-', 't-wo', 'three- fo-ur', 'five six se-ven');
- or download this
qw(one two three four five six seven)
- or download this
print join("\n", map { $_ =~ s/-//g; split; } @words);
- or download this
print join("\n", map { $_ =~ s/-//g } map { split } @words);