Vincent Fourmond wrote:
> h = {}
> for k,v in hash
>   [k].flatten.each {|l| h[l] = v}
> end
> hash = h

  Actually, I've got shorter ;-):

h = {}
for k,v in hash
  [*k].each {|l| h[l] = v}
end
hash = h

	Vince

-- 
Vincent Fourmond, PhD student (not for long anymore)
http://vincent.fourmond.neuf.fr/