From: robert lengu Date: 2013-01-19T04:09:44+09:00 Subject: Search a value from nested hash Hi i need some guide to complete my task basically i am doing this if result.has_key?("t") p result["t"] end "host1"=>{"valu1"=>{"value2"=>[{"t-1"=>"Fri Jan 18 01:46:15 SAST 2013"}]}, "value3"=>{"start"=>"xxxx", "value4"=>"xxxx"}}, "host2"=>{"value1"=>{"vaue2"=>[{"t-8"=>"Fri Jan 18 01:51:59 SAST 2013"}]}, "value3"=>{"start"=>"xxxxx", "value4"=>"xxxx"}}} but i need to further query in that hash for value t-1, So if value t-1 is present in this hash then it will say "Found" how can i do that ?? Thanks for your help. -- Posted via http://www.ruby-forum.com/.