http://qs321.pair.com?node_id=13943


in reply to Flipper

I don't like
for (1..12){ print "$Cheers[$flip = ++$flip % 4]\n"; }
because you're throwing away the result of the ++. Either change it to
$flip = ($flip + 1) % 4;
or the slightly cooler
($flip += 1) %= 4;

-- Randal L. Schwartz, Perl hacker