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.