hi guys,
whenever i try to upload my perl code on the windows localhost it displays and Error 500 page?
Could anyone help me on this?
Any help would be appreciated.
Thanx
hap_zax wrote:hi guys,
whenever i try to upload my perl code on the windows localhost it displays and Error 500 page?
Could anyone help me on this?
Any help would be appreciated.
Thanx
hap_zax wrote:well it says that no file found... but that file is in the folder specified... i.e. in the httpd folder..
Do you have any other opinion there?
hap_zax wrote:ok everything seems to be working fine ... but whenever i upload a code i get this error:
Can't find string terminator "EndHdr" anywhere before EOF at C:/Program Files/xampp/htdocs/catalogue.cgi line 17
Can you be able to help?
Thanx
print <<EndHdr;
<html><head><title>My Data</title></head>
<body>
<center>
<h2 align="CENTER">My Data</h2>
<table border="1">
<tr>
EndHdr
;
Why do I get an error using Perl's here-doc syntax (<<), that says "Can't find string terminator anywhere before EOF"?
This is a weird error that occurs when your string terminator is on the last line of your script. With a script like:
print <<"END";
The snake is old, and his skin is cold.
END
perl is looking for the word END on a line by itself, followed by a line-feed character (\n). If the END is the last line of your script, you have to remember to hit <Enter> after the word END, so that Perl can recognize it as the string terminator.
Most UNIX text editors will do this automatically. Most Windows text editors won't. Thus the problem.
Note that this can also cause a problem with Perl formats, since these are terminated with a single . on a line by itself. However, it's much more rare, since programmers often specify the format for output at the top rather than at the bottom of a file.
Users browsing this forum: No registered users and 155 guests