in reply to Alternating colors for HTML Table's
use Tie::Cycle; tie my $color, 'Tie::Cycle', [qw(red green blue)]; for my $row (@rows){ print qq{<tr bgcolor="$color">$row</tr>\n}; }
But normally you use a template anyway...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Alternating colors for HTML Table's
by narainhere (Monk) on Sep 06, 2007 at 11:54 UTC |