in reply to Alternating colors for HTML Table's
my @colors = qw(blue green);
my $i = 0;
foreach my $row (@rows)
print "<TR BGCOLOR=$colors[$i++ % @colors]>$row</TR>";
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (365 votes). Check out past polls.