From: "Michael .." Date: 2009-02-15T20:44:51+09:00 Subject: Multidimensional hash - get all not blank keys Hello. I have this Hash. result={"1"=>{"6"=>"", "7"=>"", "8"=>"", "1"=>"Value1", "2"=>"", "3"=>"Value2", "4"=>"", "5"=>""}, "2"=>{"6"=>"", "7"=>"", "8"=>"Value3", "1"=>"", "2"=>"", "3"=>"", "4"=>"", "5"=>""}, "3"=>{"6"=>"", "7"=>"", "8"=>"", "1"=>"", "2"=>"", "3"=>"", "4"=>"", "5"=>""}, "4"=>{"6"=>"", "7"=>"", "8"=>"Value4", "1"=>"", "2"=>"Value5", "3"=>"", "4"=>"", "5"=>""} } Is it possible to get all keys with a the value. 1,[1 => Value1] 1,[3 => Value2] 2,[8 => Value3] 4,[8 => Value4] 4,[2 => Value5] thanks michael -- Posted via http://www.ruby-forum.com/.