http://qs321.pair.com?node_id=150515


in reply to Script not returning header

I think i figured out the problem, I went back an used a CGI object, and it worked. I assume (and we all know what happens when you assume...) that tripod castrated the CGI.pm file so that now all you can use is the OO part... here's working code:
use CGI; $q = new CGI; print $q->header, $q->start_html('hello world'), $q->h1('hello world'), $q->end_html;

Thanks for all of your help

        - Ace "Two programmers walk into a bar, the third ducks"

Replies are listed 'Best First'.
Re: Re: Script not returning header
by Kanji (Parson) on Mar 09, 2002 at 09:29 UTC
    s/castrated/obsolete/;

    If you're using the version Tripod offer, it's a horrendously outdated copy of CGI.pm -- 2.30 (dated 1997 ... the horror!)

        --k.


Re: Re: Script not returning header
by gellyfish (Monsignor) on Mar 09, 2002 at 12:32 UTC

    I don't think that the CGI.pm is in itself castrated or changed in anway - I downloaded the CGI.pm file and it appears to be an unchanged 2.30 version, I think that it is something else that tripod is doing as I mention in Re: Script not returning header ...

    /J\