perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Kim <>
Subject Re: Apparent Nesting Problem
Date Tue, 26 Apr 2005 03:54:40 GMT
>		[$ if ($background eq 1) $]<tr style="background: #ccc;">[$ else 
>$]<tr>[$ endif $]
>		[- $background = !$background -]

I had a simlar problem when I upgraded from 1.3 to 2.0. 

You should honor the table structure first and fit conditions or loops
around it. I.e. you should arrange the ifs and loops so that when they are
removed, the table structure should make sense.

<table>[$if$]<tr>...</tr>[$endif$]</table> => Removing [$if$][$endif$]
should make a proper table.

A simple fix will be like: 

  <tr [$ if ($background eq 1) $]style="background: #ccc;"[$ endif $]>

Just my 2 pence.


Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas A&M University

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message