Dennis Martin Ong wrote:
> Hi all,
>
> I'm new to Perl and have got it running on Windows 2000 professional with Apache
>1.3.23.
>
> I'm trying out some examples from a book and I'd always get this :
>
> "Can't find string terminator "EndHTML" anywhere before EOF at XXX.cgi." when I run
>it in my browser or when I do a perl-CW.
>
> A snippet of the the code:
>
> #!E:/perl/bin/perl
>
> print "Content-type:text/html\n\n";
> print <<EndHTML
The above should be:
print <<EndHTML; # add the ;
> <html><head><title>Hello!</title></head>
> <body>
> <h2>Hello!</h2>
> Welcome, visitor from $ENV{'REMOTE_HOST'}!<p>
> </body></html>
> EndHTML
>
> It seems like I'd always get this error when there's a EndHTML in the script. What
>could the problem be? Is it due to a misconfiguration in Perl or rather the Apache?
I'm going to assume that you have a newline after EndHTML
that Brent mentioned.
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs