From: Tadeusz Bochan Date: 2011-02-22T08:22:58+09:00 Subject: Re: Console output formatting Try, hash.each {|key,val| printf "%s = %d\n",key,val} or hash.each_with_index do |a,i| printf "%s = %d ",a.first,a.last puts if (i%3==2) end -- Posted via http://www.ruby-forum.com/.