From: Drew Olson Date: 2008-01-05T01:15:30+09:00 Subject: Re: iterating over array of variables - can't change t hem? AJS wrote: > title="Title" > subtitle="Subtitle" > body="Body" > [title,subtitle,body].each {|item| item.downcase!} > You're looking for map, which performs the action on each element and creates a new array with the results: [title,subtitle,body].map{|item| item.downcase} -- Posted via http://www.ruby-forum.com/.