From: "Jesús Gabriel y Galán" Date: 2009-03-06T21:40:56+09:00 Subject: Re: add a string on the end of values before splitting new line On Fri, Mar 6, 2009 at 1:17 PM, jazzez ravi wrote: > 3. Code > @file="value1,value2,value3,value4" # @output=[] # @file.split(/,/).each do |record| # @output << record + " comments" # end output = @file.split(/,/).map {|record| record + comments} each + filling an array => map Jesus.