in reply to Question about Table.pm

Works fine for me here - as bibliophile pointed out, the space in your use statement after the :: has to go. Also make sure that /cgi-bin/testme.csv exists. Just because it's "http://your.domain.net/cgi-bin/testme.csv" doesn't mean that it's "/cgi-bin/testme.csv" to perl. In fact, it probably isn't. Even if it were, I'd suggest moving it - you shouldn't put your cgi-bin directory at the root of your filesystem. Put it in /srv/www/cgi-bin or /var/httpd/cgi-bin or even /home/apache/cgi-bin or something. Wherever the file really is on your filesystem, that's what you have to pass in to Data::Table.

Replies are listed 'Best First'.
Re^2: Question about Table.pm
by MBolton (Novice) on Feb 25, 2005 at 21:37 UTC
    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....
      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.