$|=1; $counter=0; [some loop condition] print "." unless $count++ % n; [do other stuff] [end loop]