Extra stuff when doing SSI with Perl - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Extra stuff when doing SSI with Perl

First of all, I'm a newbie at perl. I'm trying to use SSI on my webpage but I keep getting unexpected result.

Here is my html code:




Here is my perl code:


print "Content-type: text/html



while(defined($line=)) {

print "$line";


close (gbfile);


If I call the perl script directly, I "Yes I dit it" back. When I call it via SSI in my webpage, I get the following:

"HTTP/1.1 200 OK Date: Wed, 22 Dec 1999 07:18:56 GMT Server: Microsoft-IIS/4.0 Content-type: text/html Yes I did it "

How can I get rid of the extra heading?

Here's the url to the perl script and the html that calls the perl script:





Sign In or Register to comment.