in reply to Alternating colors for HTML Table's

Timtowtdi:

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
    TIMTOWDI I like that!!!!

    The world is so big for any individual to conquer