www.fromthevalley.com.au

Write To Console over the top of itself

To write over the top of itself, all you have to do is  us the \r command at the end of the line instead of the \n command.

 

IE:

        print "Updating record $counter of $ttl... \r";
 

 

\n =  Carriage return

\r = back to start of line.

HOMEAJAXAPACHEBizphoneCSSDNSGeneralGraphicsHTMLHardwareJavascriptLinuxMACMS SQLMailMicrosoftOFFICE 365PerlPostgresSEOSocial MediaVMwareWindows 10