Think about Loose Coupling | |
PerlMonks |
Re: Re: alternating row colorsby BigJoe (Curate) |
on May 18, 2001 at 00:59 UTC ( [id://81369]=note: print w/replies, xml ) | Need Help?? |
Good code but you could make it a little bit more open by removing the 2 and replace it with $#colors Then if you would like to add more colors to rotation you do not need to change anything besides adding the color. --BigJoe Learn patience, you must. Young PerlMonk, craves Not these things. Use the source Luke.
In Section
Seekers of Perl Wisdom
|
|