Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Alternating colors for HTML Table's

by moritz (Cardinal)
on Sep 06, 2007 at 11:29 UTC ( [id://637389]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://637389]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-25 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found