I looked at the man page for HTTP::headers and it isn't realy clear as to how to use it. I'm used to mod_perl and not doing cgi without it. My best guess:
my $h = new HTTP::Headers
Content_Type => 'text/html',
Location => 'http://foo.com';
print $h->as_string,"\n\n";
Since I'm assuming that your stuff is being handled by the server you only need to output a partial header. The two newlines will separate the content of the page as required. This is the best that I can do since I realy don't know what your trying to do except use HTTP::headers to do what it does best. Read the man page on how to use it. I hope I've given you a nudge in the right direction.
BMaximus
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|