Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Outputing HTML files

by jryan (Vicar)
on Aug 22, 2001 at 04:58 UTC ( [id://106843]=note: print w/replies, xml ) Need Help??


in reply to Outputing HTML files

First of all, you forgot to create a new CGI object, like this:

my $query = new CGI;

As for your question either of these will work:

print "Content-type: text/html\n\n";

or

print $query->header();

Replies are listed 'Best First'.
Re: Re: Outputing HTML files
by perigeeV (Hermit) on Aug 22, 2001 at 05:14 UTC
    You don't need to create an object when using CGI.pm's function oriented style. S/He imported :standard.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-28 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found