From: psy Date: 2008-06-18T19:04:24+09:00 Subject: Re: hash, key, problem... On Wed, 18 Jun 2008 18:49:53 +0900 "Srijayanth Sridhar" wrote: > > Do you want something like this: > > hash={:name => "John Doe", :age => 23} > > hash.each do |elem| > puts elem.join("\n") > end > > That should work. You can also of course get the string as: > > string=elem.join("\n") > > Hope that helps. > > Jay > Yeah, this would work, but now there is another problem - it dont prints the value of the variables. Btw I got it done. Thank you anyway Katja