digital_storm
05-25-2005, 05:13 AM
Hello
How do I embed PERL in HTM in the most nice way?
I have to do alot of controlls so I wonder if I can do anything like JSP:
<html>
.
<td> <% if($condition){;%> Print something out <%};%> </td>
.
.
</html>
Or do I have to controll all statements and make more or less static HTML depending on values like:
my $myhtml;
if(condition1){
$myhtml=' 1..........'
}
if(condition1){
$myhtml=' 2..........'
}
.
.
.
<html>
.
.
$myhtml
.
.
</html>
Thanks in advance!
/D_S
How do I embed PERL in HTM in the most nice way?
I have to do alot of controlls so I wonder if I can do anything like JSP:
<html>
.
<td> <% if($condition){;%> Print something out <%};%> </td>
.
.
</html>
Or do I have to controll all statements and make more or less static HTML depending on values like:
my $myhtml;
if(condition1){
$myhtml=' 1..........'
}
if(condition1){
$myhtml=' 2..........'
}
.
.
.
<html>
.
.
$myhtml
.
.
</html>
Thanks in advance!
/D_S