in reply to Re: Odd and even table rows
in thread Odd and even table rows

Or a variation on yours and GrandFather's replies:
my $t; while ($pointer = $sth->fetchrow_hashref){ my $class = qw(even odd)[$t^=1]; ... }
- Miller