Two things to try - first, run it at the command prompt. Second, look at the webserver's error log. One of these should help you - or help us help you. For it to be not working, there is likely some sort of error.
The third thing to check is that your csv file could be empty - I learned long ago that Rule #2 of programming is "Are you testing what you think you're testing?". I don't remember what rule #1 is.
| [reply] |
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!
| [reply] [d/l] |
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!
| [reply] |