From: Phrogz Date: 2008-02-12T14:05:43+09:00 Subject: Re: nested hash from array of paths On Feb 11, 10:00 pm, Phrogz wrote: > array.each{ |path| >   sub = auto_hash >   path.split( "/" ).each{ |dir| sub[dir]; sub = sub[dir] } > } Bah, of course that can be written as: array.each{ |path| sub = auto_hash path.split( "/" ).each{ |dir| sub = sub[dir] } }