Alex the Serb has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: weird CGI problem
by theguvnor (Chaplain) on Jan 24, 2002 at 17:24 UTC
    You've made the call to end_table and end_html but forgotten to print them! I'm pretty sure it's as simple as that.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: weird CGI problem
by little (Curate) on Jan 24, 2002 at 17:17 UTC
    you have a spell error in line 25 as the error says:
    $dbh->diconnect; should be $dbh->disconnect; I guess?

    Have a nice day
    All decision is left to your taste
    Update:
    Due to the occured error your script doesn't finish, so thats the reason that CGI.pm is being blocked from ending the task in writing the closing tags to STDOUT. A dead chicken might keep running, an ended script not. ;-)
    Update_2:
    And of course the theguvnor is correct as you had a warning and the script completes. I just didn't read further than teh cause of your error warning. :-)
Re: weird CGI problem
by Zaxo (Archbishop) on Jan 24, 2002 at 17:33 UTC

    You've forgotten to print the closing tag functions:

    print $q->end_table, $q->end_html;
    It would be good to either check for errors on DBI methods, or else set the DBI attr {RAISE_ERROR => 1} when you connect.

    After Compline,
    Zaxo