A less verbose way of doing the same thing would be:
my $i=0; while ($pointer = $sth->fetchrow_hashref){ my $class = ("even","odd")[$i++%2]; ...more stuff goes here.... }
citromatik
In reply to Re: Odd and even table rows
by citromatik
in thread Odd and even table rows
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |