you need to close your script with a <<END.
-----Original Message-----
From: Ratan Jha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 06:33
To: [EMAIL PROTECTED]
Subject: umable to run cgi scripts under mod_perl
Running mod_perl-1.22 apache-1.3.11
I want to run plain perl scripts under mod_perl using Apache:Registry.
I amke a change to my httpd.conf file
Alias /perl/ /usr/local/apache/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On
</Location>
I've stored my perl script in the perl directory under ~www/perl
The perl script is:
#!/usr/bin/perl
print <<END;
<html>
<body>
<h1>This is a test</h1>
</body>
</html>
The file is being returned as a plain html file
The output is:
################################################
#!/usr/bin/perl print <
This is Test
END
####################################################
Do you have any idea why is this happening?
I'll appreciate your response.
Thanks
Ratan
Ratan M. Jha
Patni Computer Systems Ltd.(PCS)
Unit 55, SDF2, SEEPZ, Andheri(E),
Mumbai.
Call - 8291454/0479 x 5178.
E- mail - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>