I'm not sure how much you understand about Net::FTP, and there wasn't a code sample, so I can only give a general idea of what I would do.
my @sites = ('ftp.site1.com', 'ftp.site2.com'); foreach my $site ( @sites ) { doFtpStuff($site) and last; } You would need to write the doFtpStuff subroutine returning 1 on success or 0 on failure. The 'and last' will only be executed if doFtpStuff() returns 1, which will drop it out of the loop. Rob -----Original Message----- From: Michael Pratt [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 27, 2001 9:51 PM To: [EMAIL PROTECTED] Subject: NET::FTP What is the easiest way to set up NET::FTP to try a different server if the other isnt available? Thanks! Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]