From: Mike Steiner Date: 2007-05-23T11:45:39+09:00 Subject: problem appending to arrays in a hash of arrays ------=_Part_64828_30700142.1179888339613 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm trying to create a hash with each element being an array (initially empty), and I've tried a few variations to get what I want. Why don't the last 2 lines work? h = Hash.new ( Array.new ) h["abc"] = h["abc"] + [ "foo" ] # this works h["abc"] << "foo" # this doesn't h["abc"].push ( "foo" ) # this doesn't either (Note: the above code isn't the actual code I'm using, but a simplified version.) Mike Steiner ------=_Part_64828_30700142.1179888339613--