For this exercise, try writing a script to parse and return information from a given csv script. There is no character limit or performance goal (although obtuse slowness is discouraged).
The script should support files with or without headers, and if the file has a header it should allow you to get values from each row by column name. The CSV library should be able to handle any CSV file.
For extra points (not that anybody's assigning points), make it possible to iterate over the rows in the file and the columns in a row.
This post has been edited by xclite: 05 May 2011 - 06:34 AM