Quoting Joe Brenner <[EMAIL PROTECTED]>, who wrote:
> Sam Roberts <[EMAIL PROTECTED]> wrote: 
> >   # Strip whitespace around the "," seperators.
> >
> >   $_ =~ s/\s*,\s*/,/g;
> >
> >   local @_ = split(/,/, $_);
> 
> You appear to be assuming that there are no commas inside
> the data itself.  

Sort of, except it's not an assumption, it is a requirement of
our test suites.

> DBD::CSV just uses Text::CSV_XS, by the way, so you don't
> gain anything by switching to the DBD version, except
> possibly a syntax consistent with what you're already
> familiar with as a database programmer.

But no! I gain EVERYTHING by using an SQL database. Putting data into
any particular format is easy, flexibly querying it is harder. This is
an excerpt from a generic tool to generate graphs and html and latex
reports of the benchmark and interoperability test results for our
toolkits, and learning SQL has allowed me to not have to invent my own
data querying language.

Cheers,
Sam

-- 
Sam Roberts <[EMAIL PROTECTED]>

Reply via email to