perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kaare Rasmussen" <>
Subject Header / Footer when empty list
Date Wed, 18 Dec 2002 16:28:08 GMT

How can I have a header and footer for a list of data, even if the list is 

Right now I have something similar to this:
[$if $row == 0$]
<TH WIDTH=80 CLASS=Title ALIGN=center>[=Select=]</TH>
<TH WIDTH=20% CLASS=Title ALIGN=center>[=Articlenr=]</TH>
[$if $row == $#lines $]
<TD><INPUT TYPE="radio" VALUE="0" NAME="select_line"></TD>

but it doesnt work if @lines is empty. I've also tried to put a check for an 
empty array, but it seems to bail out already at the table tag in that case. 

This is Embperl 2.0b8. 

Kaare Rasmussen            --Linux, spil,--        Tlf:        3816 2582
Kaki Data                tshirts, merchandize      Fax:        3816 2501
Howitzvej 75               Åben 12.00-18.00        Web:
2000 Frederiksberg        Lørdag 12.00-16.00 

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

View raw message