Title: Problem with Apache::ASP
Has anyone noticed that they get errors when trying to use else or elsif statements with Apache::ASP.
If I form my statements like this:
<% if($foo eq ‘bar’){ %>
<p>bar
<% } %>
<% elsif($foo eq ‘bar2’){ %>
<p>bar2
<% } %>
I get syntax errors.
syntax error at (eval 28498) line 39, near "; elsif" (Might be a runaway multi-line '' string starting on line 38) , /usr/local/www/users/jpmktg/html/Global/Lib/5.005/Apache/ASP.pm line 1840
If I form my statements like this:
<% if($foo eq ‘bar’){
print(’Hello’);
}
elsif($foo eq ‘bar2’){
print(’bar2’);
}
%>
Then I get no syntax errors. Is there a way around this? Any help would be much appreciated.
--
- Problem with Apache::ASP Fabio Albertin
- Re: Problem with Apache::ASP G.W. Haywood
- Re: Problem with Apache::ASP Fabio Albertin
- Re: Problem with Apache::ASP Matthew Byng-Maddick
- Re: Problem with Apache::ASP G.W. Haywood
- Re: Problem with Apache::ASP G.W. Haywood
- Re: Problem with Apache::ASP Fabio Albertin
- Re: Problem with Apache::ASP G.W. Haywood
- Re: Problem with Apache::ASP isaac
- Re: Problem with Apache::ASP G.W. Haywood
- Re: Problem with Apache::ASP Joshua Chamas