perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: magic tables in Embperl 2.1.0
Date Fri, 25 Nov 2005 15:03:22 GMT
Hi,

> 
> I have a problem concerning magic tables. In earlier days, I 
> remeber that the following Embedded Perl code
> 
>   [- @ary = ( [a,b], [c,d], [e,f] ) -]
> 
>   <table>
>    <tr><th>Head1</th><th>Head2</th></tr>
>    <tr><td>[+ $ary[$row][$col] +]</td></tr>
>   </table>
> 

Embperl currently does not support the th tag, but you can write

   <table>
    [$if $row == 0 $]<tr><th>Head1</th><th>Head2</th></tr>[$endif$]
    <tr><td>[+ $ary[$row][$col] +]</td></tr>
   </table>


To workaround this

Gerald



 
** Virus checked by BB-5000 Mailfilter ** 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message