From: Tim Wolak Date: 2008-05-20T22:13:03+09:00 Subject: Re: displaying data Thanks Robert! It is actually working but like I said after the first has is printed out a new line carriage return is then put in so all my data moves down. The performance part of it is ok as this is not a real long script, its pretty fast as is. I was just not sure about why when I use the concatenation sign it would do a new line. Thanks, Tim def format @prevnl.each{ |key, value| puts "#{key}\t #{value}" } + @curnl.each{ |key, value| puts "#{value}" } @finbal.each{ |key, value| puts "#{key} \t #{value}" } end > This won't work since the return value of Hash#each is the Hash > instance itself. I do not know the relationships between your hashes > but you need to iterate them in parallel (e.g. by using the super set > of all keys) and print them then. > > -- Posted via http://www.ruby-forum.com/.