From: Martin DeMello Date: 2005-08-02T19:46:04+09:00 Subject: Re: csv to hash ou_ryperd wrote: > I must be stoopid: > :6:in `[]=': cannot convert String into Integer (TypeError) Oops, no, my mistake. I meant hash = {} rather than hash = []. {} is an empty hash; [] is an empty array. Also, note that your hash keys will be for the form '10000', not 10000 - if you want the latter, you need to say hash[k.to_i] = v. martin