rjahrman has asked for the wisdom of the Perl Monks concerning the following question:
It always dies. Even more oddly, I copy and pasted the FTP routines from earlier in the script, and those work without problems.my $ftp; for ($i=0;$i<5;$i++) { undef $ftp; if ($ftp = Net::FTP->new("ftp.$dom", Debug => 0)) { last; } if ($i >= 4) { die("The given FTP server could not be found."); } else { sleep 5; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP Won't Log In, But Does the Second Time
by guha (Priest) on Aug 03, 2004 at 08:29 UTC | |
|
Re: Net::FTP Won't Log In, But Does the Second Time
by nimdokk (Vicar) on Aug 03, 2004 at 09:34 UTC | |
|
Re: Net::FTP Won't Log In, But Does the Second Time
by danielcid (Scribe) on Aug 03, 2004 at 12:24 UTC | |
by rjahrman (Scribe) on Aug 03, 2004 at 22:14 UTC | |
|
Re: Net::FTP Won't Log In, But Does the Second Time
by rjahrman (Scribe) on Aug 04, 2004 at 03:16 UTC |