Help for this page

Select Code to Download


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