On Aug 15, 2008, at 1:32, Ray Pereda wrote:

>>> h =3D Hash.new {|h,k| h[k] =3D Hash.new(&h.default_proc)}

Don't do that. The h inside the block is conflicting with the h =20
outside. Make sure the variables don't collide, and it works:

 >> the_hash =3D Hash.new {|h,k| h[k] =3D Hash.new(&h.default_proc)}
=3D> {}
 >> the_hash[:a][:b][:c]
=3D> {}
 >> the_hash
=3D> {:a=3D>{:b=3D>{:c=3D>{}}}}

--=20
Mikael H=F8ilund
http://hoilund.org/