From: Martin DeMello Date: 2007-07-17T04:11:14+09:00 Subject: Re: clean nice way (hash) On 7/16/07, SonOfLilit wrote: > > > > a.each {|key,value| a[key] = {'name' => value}} > > > > > > Are you allowed to do this? > > > > Why not? Seem to work here. > > > > I was taught not to modify a structure I'm #each ing on... > > Does this not apply when you only modify substructures of it? It doesn't affect the "spine" of the structure, just the values hanging off it. martin