It is probably because you didn't instruct the browser well. Add this at the top of your script: print "Content-type: text/html\n\n";
or if you're using CGI.pm this: print header (-type => 'text/html'); ||> -----Original Message----- ||> From: Sumanth Sharma [mailto:[EMAIL PROTECTED] ||> Sent: Tuesday, May 04, 2004 2:07 PM ||> To: [EMAIL PROTECTED] ||> Subject: Perl on Apache ||> ||> Hi All, ||> ||> Pls Bare with me If I am scratching some rudimental stuff here ||> I know perl lang Fundas. But... ||> ------------------------------------------------------------------------ ---- ||> - ||> [ ||> Some Historical background for my problem .... ||> {History: I want a project management system, so I plan ||> to use Twiki. ||> So, to I plan to use some Perl/CGI to manage this. I have ||> Installed "Apache ||> 2.0" on D:\\ApacheGroup\Apache2". I have also Installed ||> mod_perl over ||> Activestate 5.8.3 build 509 " } ||> ||> I have also configured loop-back i.e 127.0.0.1:80 ||> as my web-server ||> ] ||> ------------------------------------------------------------------------ ||> Coming to my Question, ||> ||> Now, I placed a file called host.pl, in the cgi-bin folder ||> ||> but when I invoke http://127.0.0.1/cgi-bin/host.pl ||> My browser tries to download this file. ||> ||> But I expected Apache/ or Perl to have executed this script. ||> [I have used Win2K pro SP4, ActiveState Perl 5.8.3 build 809, Apache 2.0, IE ||> 6.0, mod_perl 2.0] ||> ||> Where have I gone wrong ?? ||> or ||> How do I get my Perl scripts running on the web-server ||> Pls help me. ||> ||> ||> ||> Thanks In Advance, ||> Sumanth ||> ||> ||> ||> ||> -- ||> To unsubscribe, e-mail: [EMAIL PROTECTED] ||> For additional commands, e-mail: [EMAIL PROTECTED] ||> <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>