in reply to Re^4: Question about Table.pm
in thread Question about Table.pm

Ahh, the csv file does contain information (I verified this), but I did find something interesting in the apache logs: Inconsistent column number at data entry: 1 at (then it gives the path and filename of my script) line 651. Line 651 is the one that reads like the following:
$t = Data::Table::fromCSV("/usr/local/apache2/cgi-bin/testme.csv");
I am assuming the "1" that the Apache logs is referring to is in reference to the headers that I am using for the csv file and therefore the headers that would be in the HTML table. Are there some particular rules about how that content is supposed to look (i.e. no whitespace allowed in the header names or something)? Thanks very much for everyone's help thus far!

Replies are listed 'Best First'.
Re^6: Question about Table.pm
by MBolton (Novice) on Feb 28, 2005 at 15:45 UTC
    Ok, I did get a "dummy" file of mine to work.. for whatever reason, I had to do the fromCSV("filename") part as fromCSV("filename",0) and allow it to create generic column headers for me (or I could specify the values of those as well, according to the CPAN doc). This leads me to believe that it has something to do with the contents of my specific csv file that I created. Do I have to have all whitespace removed from the values before I can use the Data::Table (Table.pm) module? If not, are there any other specific rules that apply to using this module? Thanks very much!