ou_ryperd <walter.kruse / eject.co.za> 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