>>>>> "A" == =?iso-8859-1?Q?Aleksi Niemel=E4?= <iso-8859-1> writes:

A> Hash#[]= shouldn't delete when said hash[key]=nil . 

pigeon% ruby -e 'a = {1 => 2}; a[1] = nil; p a'
{1=>nil}
pigeon% 

A> ruby -e's="foo bar"; m1=/bar/.match s; m2=/foo/.match s; p m1[0...1];'
A>   ["foo"]

pigeon% ruby -e's="foo bar"; m1=/bar/.match s; m2=/foo/.match s; p m1[0...1];'
["bar"]
pigeon% 

pigeon% ruby -v
ruby 1.5.5 (2000-08-09) [i686-linux]
pigeon% 


Guy Decoux