Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: FTP downloading progress bar

by robartes (Priest)
on Apr 11, 2003 at 07:13 UTC ( [id://249826]=note: print w/replies, xml ) Need Help??


in reply to FTP downloading progress bar

From the docs:
hash ( [FILEHANDLE_GLOB_REF],[ BYTES_PER_HASH_MARK] ) Called without parameters, or with the first argument false, hash +marks are suppressed. If the first argument is true but not a referen +ce to a file handle glob, then \*STDERR is used. The second argument +is the number of bytes per hash mark printed, and defaults to 1024. I +n all cases the return value is a reference to an array of two: the f +ilehandle glob reference and the bytes per hash mark.
So, $ftp->hash(\*STDOUT,1024); or similar should do the trick for you.

CU
Robartes-

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-24 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found