From: Joey Zhou Date: 2011-03-09T21:01:20+09:00 Subject: Re: Unexpected problem: hash<< value Robert Klemme wrote in post #986401: > Well, in this case actually the better idiom is this: > > h = Hash.new {|h,k| h[k] = []} This is actually what I need. Thank you. -- Posted via http://www.ruby-forum.com/.