Re: FTP.pm - timeout error?

Graham Barr (bodg@tiuk.ti.com)
Thu, 14 Mar 96 16:20:51 GMT


Stephen M Beckstrom-Sternberg <sbeckstr@rapd.gig.usda.gov> writes:
>>   >I am using FTP.pm (Net-FTP-1.15b), and Perl5.0002.  It works nicely,

...

>
>Graham,
>
>	Thanks for your quick reply.  Let me clarify what I am saying.
>I am using this in an 'if' statement, and it evaluates to '0' when I
>use either of the following:
>
>	if ($ftp = Net::FTP->new($thaturl,Timeout=>60)) {
>
>		or
>
>	if ($ftp = Net::FTP->new($thaturl,Timeout => 60, Debug => 1)) {
>

But what output did you get from this, it should have printed to
STDERR.

>However, when I use the following, it evaluates positively:
>
>	if ($ftp = Net::FTP->new($thaturl)) {

--
Graham Barr <bodg@tiuk.ti.com>
Texas Instruments Ltd.