[Cascavel-pm] Progress usando FTP-get

Nelson Ferraz nferraz em gmail.com
Terça Julho 29 07:03:55 PDT 2008

2008/7/29 Patty Silva <ptfzs em yahoo.com.br>:
> Pessoal..
> Estou usando o use Net::FTP;
> Teria como mostrar a barra de progresso ao fazer o ftp->get($file) ???

Tem sim.

perldoc Net::FTP


new ([ HOST ] [, OPTIONS ])

    This is the constructor for a new Net::FTP object. HOST is the
name of the remote host to which an FTP connection is required.

    HOST is optional. If HOST is not given then it may instead be
passed as the Host option described below.

    OPTIONS are passed in a hash like fashion, using key and value
pairs. Possible options are: (...)

    Hash - If given a reference to a file handle (e.g., \*STDERR ),
print hash marks (#) on that filehandle every 1024 bytes. This simply
invokes the hash()  method for you, so that hash marks are displayed
for all transfers. You can, of course, call hash() explicitly whenever
you'd like.

Mais detalhes sobre a lista de discussão Cascavel-pm