in reply to overwritting print in same line
If you just want to add dots then combine switching off buffering output with not printing "\n"
Depending on what you are doing you may only want to print a dot every n iterations
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]
Depending on what you are doing you may only want to print a dot every n iterations
$|=1; $counter=0; [some loop condition] print "." unless $count++ % n; [do other stuff] [end loop]
|
---|
In Section
Seekers of Perl Wisdom