in reply to Odd and even table rows

Well, this is my very first perlmonks reply, but a slightly more terse approach would be
$class=$i++%2?"odd":"even";
Though I'm sure plenty of people will point out better ways