Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: File copy progress.

by Fastolfe (Vicar)
on Dec 05, 2000 at 18:44 UTC ( [id://44990]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://44990]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-25 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found