mod perl vesion 2 on Win32 returns "runaway multi-line RR string"errors on working CGI fil
am 24.08.2008 22:54:28 von Joe Smoker
Hey guys,
I've installed Win32 mod perl version 2.0 and Apache server 2.2.9 on my
XP Pro box according to the directions (I hope)... However, when I
try to run any sample script, I get the following error in the
error.log file:
[Sat Aug 23 16:05:41 2008] [error] syntax error at (eval 6) line 13,
next token ???\n (Might be a runaway multi-line RR string starting on
line 1)\nBareword found where operator expected at (eval 6) line 13,
near "E"\nsyntax error at (eval 6) line 15, near "head>"\nBareword
found where operator expected at (eval 6) line 16, near
"<title>My"\nBareword found where operator expected at (eval 6)
line 19, near "/head>\r\n <body bgcolor="#FFFFCC">\r\n
<h1>This is a pretty lame Web page</h1"\n (Might be a runaway
multi-line // string starting on line 17)\nBareword found where
operator expected at (eval 6) line 20, near "<p>Who"\nBareword
found where operator expected at (eval 6) line 22, near
"/body>\r\n</html"\n (Might be a runaway multi-line // string
starting on line 21)\n
Seems like mod perl does not like the CRLF chars in the notepad
file... but I also tried removing the CR chars with the same result...
here's the script that I tested that works with the external Perl
(5.8) interpretor:
#!c:/perl/bin/perl
use CGI;
my $query = new CGI;
print $query->header( "text/html" );
print <<END_HERE;
<html>
<head>
<title>My First CGI Script</title>
</head>
<body bgcolor="#FFFFCC">
<h1>This is a pretty lame Web page</h1>
<p>Who is this Ovid guy, anyway?</p>
</body>
</html>
END_HERE
# must have a line after "END_HERE" or Perl won't recognize
# the token
Here's the stuff in my httpd file:
LoadFile "C:/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so
Alias /perl/ "C:/Documents and Settings/Mitch's Room/My
Documents/Mitch/Html/Cgi/"
<Location /perl/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI +FollowSymLinks
PerlOptions +ParseHeaders
</Location>
Any help with this stuff will be greatly appreciated... Thanks, in
advance. - Joe -