Hugh says: > I have a program, too large to post here, and an object in it with a > variable: Well, you could try to make a short example which does not work. Usually this makes it easier to other to help you out and as a side effect many problems magically vanish :) - at least that happens me all the time. > Are there any catches I should be looking out for when doing > this sort of thing? > @chunks = Hash.new([]) > It is a hash of arrays. This is not a hash of arrays. @chunks refers to a normal array which has a default value an empty array. ruby -e 'h=Hash.new([]); h[1]="bar"; p h["foo"]; p h;' [] {1=>"bar"} - Aleksi