From: James Gray Date: 2008-04-02T12:11:27+09:00 Subject: Re: CSV headers and time conversion On Apr 1, 2008, at 9:10 PM, Ronald Steckly wrote: > So maybe I spoke too soon when I said I had the csv part of this > handled. No worries, we'll fix you up… > I've read the FasterCSV docs and, for the life of me, can't figure > out how to return values by header. Here's the script: > > require 'rubygems' > require 'fastercsv' > > a=FasterCSV.table("\/Users\/ron\/snlusgam.csv").by_col > > b=a.['header_name'] b = a[:header_name] > puts b By default, table() converts field names to Symbols for super easy access. Hope that helps. James Edward Gray II