FTP.pm - timeout error?
Stephen M. Beckstrom-Sternberg (sbeckstr@rapd.gig.usda.gov)
Wed, 13 Mar 1996 16:16:57 -0500
I am using FTP.pm (Net-FTP-1.15b), and Perl5.0002. It works nicely,
but I am having trouble setting my own timeout, rather than leaving it
at the sometimes rather lengthy default of 120.
When I do the following it works fine:
$ftp = Net::FTP->new($thaturl)
However, when I try to set a timeout, as per my understanding of the
instructions in FTP.pm it bombs:
$ftp = Net::FTP->new($thaturl,Timeout=>60)
What am I doing wrong?
Steve
P.S. The instructions read as below:
>=head2 * new($host [, option => value [,...]] )
>
>Constructor for the FTP client. It will create the connection to the
>remote host. Possible options are:
>
> Port => port to use for FTP connection
> Timeout => set timeout value (defaults to 120)
--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Stephen M. Beckstrom-Sternberg, Ph.D.
Research Scientist & Assistant Professor, Genome Informatics Group
University of Maryland, Department of Plant Biology
USDA, NAL, ISD
10301 Baltimore Blvd. phone: (301) 504-5880
Beltsville, MD 20705-2351 FAX : -7473
Email: sbeckstr@gig.usda.gov
http://probe.nalusda.gov/ http://www.ars-grin.gov/~ngrlsb/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++