Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Script not returning header

by ProgrammingAce (Sexton)
on Mar 09, 2002 at 09:07 UTC ( #150515=note: print w/replies, xml ) Need Help??


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\

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-07-01 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (98 votes). Check out past polls.

    Notices?