I am using Activestate perl on XP Pro with IIS 5 using Perlis.dll.

A perl script as simple as :

print "Location: http://www.microsoft.com\n\n";

prints on my screen, instead of forcing forwarding. This is because I am getting a "Content-Type: text/html; charset=ISO-8859-1 \n\n" line before it.
Here is a more monkish program and it's results:
use strict; use CGI; my $page = new CGI; my $msg = "Hello from ActivePerl CGI!"; # print header and start the markup output print $page->header( "text/html" ), $page->start_html( $msg ); print $page->h2($msg); print $page->end_html; # end code
This prints:
Content-Type: text/html; charset=ISO-8859-1
Hello from ActivePerl CGI!

Needless to say, this stops cookies from working (they print instead), and so on. I have deleted IIS, reinstalled it and reinstalled perl, and it still does this annoying brain dead thing.

It all started when I deleted and reset the IIS configuration setting. There doesn't seem to be any setting I can find anywhere in IIS that causes or affects this, though it obviously started then. Searching around the net, I located some comments about a registry setting in Activestate that always prints headers, but the keys doesn't exist, and if I create them, it does nothing.

Any ideas?
fred.b@mitsi.com

In reply to Activestate on IIS 5 by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.