Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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 ( [id://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("some.host.name", Timeout => 50) or die "Cannot connect to some.host.name: $@";

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 -> ("some.host.com", Debug => 1, Timeout => 50, Option => value, Option => value ...);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-04-18 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found