From: "NAKAMURA, Hiroshi" Date: 2003-01-24T22:28:25+09:00 Subject: Re: Feature request: Array.to_h (2nd part!) Kon'nichiwa, nakada-san, > From: "Nobuyoshi Nakada" > Sent: Thursday, January 23, 2003 9:43 PM > > > Isn't there a CSV processing library available? I imagine an API > > > would provide hash-like access: > > > > > > data = CSV.new(filename) > > > data.each do |record| > > > # access record[:year], etc. > > > end > > > > There is a csv processing module here: > > http://www.ruby-lang.org/raa/list.rhtml?name=csv > > But it doesn't do anything special treatment about > > "the first line as column header." You must write like below now. > > If it is possible to override Row definition in particular > subclass/instance, you could write like this. [snipped cool snippet] (He admires) You know everything about Ruby and do anything you want. For a person who is not as great as you, like me, I may add such a function to csv module. Regards, // NaHi