From: Guillaume Cottenceau Date: 2001-07-07T03:18:37+09:00 Subject: [ruby-talk:17420] Re: Default Value in a Hash.. but I need a new object each time! Michael Neumann writes: [...] > What you want would be > > h["banana"] <<= 1 # => [1] > > which equals to > > h["banana"] = h["banana"].push(1) Strange, AFAIK Hash#push modifies the object in place, so this would equal to: h["banana"].push(1) No? -- Guillaume Cottenceau - http://mandrakesoft.com/~gc/