David Wheeler skribis 2004-04-16 7:56 (-0700): > And I'll bet it's something like this: > for my $i (0..$#thingies) { > my $css_class = $i % 2 ? 'blue' : 'yellow'; > print "<tr class="$css_class"><td>$thingies[$i]</td></tr>\n";
"""" > } Probably. Can't we in Perl 6 just use something like this? for @thingies, qw(blue yellow) xx Inf -> $thingy, $class { print qq[<tr class="$class"><td>$thingy</td></tr>\n"; } Juerd