in reply to overwritting print in same line
This will print dots next to each other which maybe close to what you are asking for.$|=1; [some loop condition] print "."; [do other stuff] [end loop]
$|=1; $counter=0; [some loop condition] print "." unless $count++ % n; [do other stuff] [end loop]
|
|---|