From: Robert MannI Date: 2007-01-22T10:15:09+09:00 Subject: Tricky: converting path into a Hash ------=_Part_140160_22329460.1169428213220 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello! I am wondering if the mighty ruby crowd has a brilliant idea for a tricky problem I am solving. I need to store a path as a tree in a hash. Given: a/b/c I want the Hash: { 'a' => { 'b' => { 'c' => { } } } } or written differently hsh['a']['b']['c'] = {} Is there an elegant solution to this, without maybe looping or eval'ing too much? Muchas Gracias Senoritas, Robert Mannl ------=_Part_140160_22329460.1169428213220--