From: Tobias Reif Date: 2001-09-01T19:17:15+09:00 Subject: [ruby-talk:20663] Re: replacing items in arrays Hi Aleksi, thank you very much for your help. Here's what I do now (I try to not use exclamation methods): -----------snip----------- lines = [["item0-0","item1-0"],["item0-1","item1-1"]] td_lines = lines.collect do |line| line.collect do |item| '' + item + '' end end tr_lines = td_lines.collect do |line| '' + line.to_s + '' end print tr_lines -----------snip----------- Is that the Ruby way to do it? Anyone? Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/