Re: alternating loop

2003-12-18 Thread James Edward Gray II
On Dec 18, 2003, at 8:54 PM, Ricardo SIGNES wrote: * Mike Blezien <[EMAIL PROTECTED]> [2003-12-18T18:48:23] been trying to come up with a way, while going through a loop to alternate a table cell color I always do something more like: my $i; while (<>) { print " ... \n" } The benefit

Re: alternating loop

2003-12-18 Thread Ricardo SIGNES
* Mike Blezien <[EMAIL PROTECTED]> [2003-12-18T18:48:23] > been trying to come up with a way, while going through a loop to > alternate a table cell color I always do something more like: my $i; while (<>) { print " ... \n" } The benefit here is that someday I can replace the 2 with

Re: alternating loop

2003-12-18 Thread Mike Blezien
Thx's James worked fine,... the simplest way is usually the most obvious over-looked way :) MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com James Edward Gray II wrote: On Dec 18, 2003, at

Re: alternating loop

2003-12-18 Thread Jeff Westman
Paul Johnson <[EMAIL PROTECTED]> wrote: > On Thu, Dec 18, 2003 at 07:26:03PM -0500, Randy W. Sims wrote: > > On 12/18/2003 7:00 PM, James Edward Gray II wrote: > > >On Dec 18, 2003, at 5:48 PM, Mike Blezien wrote: > > > > > >>Hello, > > >> > > >>been trying to come up with a way, while going throu

Re: alternating loop

2003-12-18 Thread Paul Johnson
On Thu, Dec 18, 2003 at 07:26:03PM -0500, Randy W. Sims wrote: > On 12/18/2003 7:00 PM, James Edward Gray II wrote: > >On Dec 18, 2003, at 5:48 PM, Mike Blezien wrote: > > > >>Hello, > >> > >>been trying to come up with a way, while going through a loop to > >>alternate a table cell color > >

Re: alternating loop

2003-12-18 Thread Randy W. Sims
On 12/18/2003 7:00 PM, James Edward Gray II wrote: On Dec 18, 2003, at 5:48 PM, Mike Blezien wrote: Hello, been trying to come up with a way, while going through a loop to alternate a table cell color See if this gets you thinking along the right lines: my $odd = 1; while (<>) {# som

Re: alternating loop

2003-12-18 Thread James Edward Gray II
On Dec 18, 2003, at 5:48 PM, Mike Blezien wrote: Hello, been trying to come up with a way, while going through a loop to alternate a table cell color See if this gets you thinking along the right lines: my $odd = 1; while (<>) { # some kind of loop... if ($odd) {

alternating loop

2003-12-18 Thread Mike Blezien
Hello, been trying to come up with a way, while going through a loop to alternate a table cell color IE. while (..) { # To alternate a td cell color for each loop cycle so I end up # with something like this: # 1st loop   # 2nd loop.   # 3rd loop..   # 4th loop.