http://qs1969.pair.com?node_id=44990


in reply to File copy progress.

I'm not sure if this will work under Windows, but under Unix you can use \r instead of \n to return the cursor to the beginning of the line again. This makes percentage status reports "nicer" by keeping them on the same line. You just see the number go up. When you're done, print a \n.

Replies are listed 'Best First'.
Re: Re: File copy progress.
by zzspectrez (Hermit) on Dec 05, 2000 at 18:54 UTC

    Actually, I tested this under windows. At first I didnt use binmode on the filehandles, and it wouldnt work with binary files. But once I added that it worked fine.


    Thanks for the sugestion of using \r, Ill try that.


    zzSPECTREz


    UPDATE:In rereading your post, I think I missuderstood it.. Ill have to try the \r to see if it works under windows.