chomp @l; # Remove the newline from all elements print map { "$_ - processed by 'trenchwar'\n" } @l;