From: Dave Thomas Date: 2000-12-16T14:36:41+09:00 Subject: [ruby-talk:7403] Re: Ruby performance question "Joseph McDonald" writes: > I take it back (again). it does not appear that an array > is automatically converted into a hash. sorry for talking > to myself in front of you all :-0 But you can use the [] constructor Hash[1,2,3,4] # => {1=>2, 3=>4} Hash[*"a=b,c=d,e=f".tr('=', ',').split(',')] # => {"e"=>"f", "a"=>"b", "c"=>"d"} (note the asterisk...) Regards Dave