From: Sem Ptiri Date: 2011-02-09T04:27:29+09:00 Subject: Hash sanitization from query - newbie I need to clean up a hash [{0=>"BSD", 1=>105, "Operating System"=>"BSD", "count(*)"=>105}, {0=>"SUSE", 1=>99, "Operating System"=>"SUSE", "count(*)"=>99}, {0=>"Ubuntu", 1=>97, "Operating System"=>"Ubuntu", "count(*)"=>97}, {0=>"Unix", 1=>190, "Operating System"=>"Unix", "count(*)"=>190}, {0=>"Windows XP", 1=>92, "Operating System"=>"Windows XP", "count(*)"=>92}] You'll notice the first part is an array key value pair and the second part of each hash is a real key value pair. How would I go about removing all the 0=> and 1=> references from the above hash? I've seen people use inject and map but are a bit lost with regards to those functions. -- Posted via http://www.ruby-forum.com/.