Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: i want to go through the code of Net::Ftp module in perl

by lyklev (Pilgrim)
on Oct 11, 2006 at 19:40 UTC ( #577707=note: print w/replies, xml ) Need Help??

in reply to i want to go through the code of Net::Ftp module in perl

Net::FTP has a default timeout of 120 seconds, but you can override the timeout in the constructor:
my $ftp = Net::FTP->new("", Timeout => 50) or die "Cannot connect to $@";

I pretty much copied this literally from the perl documentation, which you can access on a system with perl correctly installed with

perldoc Net::FTP
I only replaced the 'Debug' option, which, now that I think about it, might be a pretty good idea too. Options can be specified in the constructor as
my $ftp = Net::FTP -> ("", Debug => 1, Timeout => 50, Option => value, Option => value ...);

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://577707]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2018-07-21 07:55 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (445 votes). Check out past polls.