princesstippytails
Technical User
Hi,
I have this code I am running:
#!/usr/bin/perl
@teams = ("Red Sox", "Blue Jays", "Yankees", "Giants"
@cities = ("Boston", "Toronto", "New York", "San Francisco"
print "Content-type: text/html \n\n";
print "<html><body>";
print <<END;
<table border=1>
<tr>
<th>Baseball Team</th>
<th>Host City</th>
</tr>
<tr>
<td>$teams[0]</td>
<td>$cities[0]</td>
</tr>
<tr>
<td>$teams[1]</td>
<td>$cities[1]</td>
</tr>
<tr>
<td>$teams[2]</td>
<td>$cities[2]</td>
</tr>
<tr>
<td>$teams[3]</td>
<td>$cities[3]</td>
</tr>
</table>
</body></html>
END
When I run it I get an error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Can't find string terminator "END" anywhere before END at C:\Inetpub\ Programming\baseball.pl line 9.
Can you tell me why it won't read it?
thanks
ptt
I have this code I am running:
#!/usr/bin/perl
@teams = ("Red Sox", "Blue Jays", "Yankees", "Giants"
@cities = ("Boston", "Toronto", "New York", "San Francisco"
print "Content-type: text/html \n\n";
print "<html><body>";
print <<END;
<table border=1>
<tr>
<th>Baseball Team</th>
<th>Host City</th>
</tr>
<tr>
<td>$teams[0]</td>
<td>$cities[0]</td>
</tr>
<tr>
<td>$teams[1]</td>
<td>$cities[1]</td>
</tr>
<tr>
<td>$teams[2]</td>
<td>$cities[2]</td>
</tr>
<tr>
<td>$teams[3]</td>
<td>$cities[3]</td>
</tr>
</table>
</body></html>
END
When I run it I get an error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Can't find string terminator "END" anywhere before END at C:\Inetpub\ Programming\baseball.pl line 9.
Can you tell me why it won't read it?
thanks
ptt