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

Ahh I think I see something: Looks like /cgi-bin is really a sym link. The real path is /usr/local/apache2/cgi-bin. Let me try putting that whole path in there and see what happens....

Replies are listed 'Best First'.
Re^3: Question about Table.pm
by MBolton (Novice) on Feb 25, 2005 at 21:44 UTC
    Well, I tried that also and it still didn't work. It just simply does not display the output to the web page at all. One thing I neglected to mention is the fact that the Table.pm module wasn't even installed on this server until this morning when I pestered a teammate of mine to put it on there. Is there something that he may have done incorrectly in the installation? When I look at the Table.pm file, the code contained within looks identical to what I see on CPAN...

      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.

        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!