in reply to Re^2: Live operations-per-second counter
in thread Live operations-per-second counter

if ($counter % 100 == 0) {
Or even
unless ($counter % 100) {
(But then it depends on how much one is familiar with such a construct - for me it is quite as intuitive as the former, but it's obvious that others' mileage may vary)