Code:
...
...
if($Q::host1 != "") {
push (@f,$Q::host1);
}
if($Q::host2 != "") {
push (@f,$Q::host2);
}
$num = scalar @f;
print "<table>";
print "<tr bgcolor='blue'>
<td><font face='arial' size='2' color='white'><b>host</b></td>
</tr>";
for ($i = 0; $i <= ($num - 1); ++ $i) {
$vv = $f[$i];
print "<tr bgcolor='beige'>
<td><font face='arial' size='2'>$$vv</td>";
print "</tr>";
print "</table>";
The problem is my table isnt' being printed. I have the header like so:
Code:
host
Code:
host
host1
host2