mod perl vesion 2 on Win32 returns "runaway multi-line RR string"errors on working CGI fil

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 -




Re: mod perl vesion 2 on Win32 returns "runaway multi-line RR string" errors on working CG

am 25.08.2008 21:53:00 von Perrin Harkins

On Sun, Aug 24, 2008 at 4:54 PM, Joe Smoker wrote:
> 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...

It does sound like a problem with your line-ending characters. Since
I don't use Win32, I can't give you any specific advice, but I think
you'll be able to fix this if you adjust the characters correctly.
There's some info on this in the perlport man page.

- Perrin

Re: mod perl vesion 2 on Win32 returns "runaway multi-line RR string"errors on working CGI

am 26.08.2008 07:03:56 von Foo JH

I use modPerl (not the CGI though), but I don't see this error even when
slapping things on notepad.

Perhaps the problem is something else?

Perrin Harkins wrote:
> On Sun, Aug 24, 2008 at 4:54 PM, Joe Smoker wrote:
>
>> 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...
>>
>
> It does sound like a problem with your line-ending characters. Since
> I don't use Win32, I can't give you any specific advice, but I think
> you'll be able to fix this if you adjust the characters correctly.
> There's some info on this in the perlport man page.
>
> - Perrin
>