in reply to extracting data from a file

Start with Text::CSV esp with these programs that are in the Text::CSV_XS distribution
examples/csv-check Script to check a CSV file/stream
examples/csvdiff Script to shoff diff between sorted CSV files
examples/parser-xs.pl Parse CSV stream, be forgiving on bad lines
examples/speed.pl Small benchmark script