Perl: the Markov chain saw | |
PerlMonks |
Re: CGI cookiesby Bilbo (Pilgrim) |
on Jan 16, 2003 at 10:08 UTC ( [id://227373]=note: print w/replies, xml ) | Need Help?? |
The header method in the CGI module returns the content-type header. If no argument is supplied then the content type defaults to text/html, so print $query->header() would do exactly the same as your print "Content-type:text/html\n\n"; If you include other arguments (such as -cookie => $cookie) then these are included in the return header as well.
In Section
Seekers of Perl Wisdom
|
|