Sorry, original message had wrong address for this list and I didn't
notice. Here is the chain.
---------- Forwarded message ----------
From: Jefferson Kirkland <email@example.com>
Date: Sat, Jul 18, 2009 at 9:17 PM
Subject: Re: NET::FTP object constructor's host option as array reference
To: Corey Foote <firstname.lastname@example.org>
While I am sure that someone here can figure out the issue with the array
reference, I am not in a good mind state to mess with it. I would cycle
through the array with a foreach as shown on this
As shown on there, this gives you control over the connection to each and
you can either use it to test the connections, or try each until
On Sat, Jul 18, 2009 at 4:44 PM, Corey Foote wrote:
I'm building an FTP client using NET::FTP. The documentation states that
the new constructor has a host option which can be a reference to an array
with hosts to try in turn. I don't seem to be able to get this to work. I'm
using ActivePerl under Windows XP. Here's my code:
@try_these = ("turing.unh.edu", "euler.unh.edu");
$ftp = Net::FTP->new(Host => @try_these)
or die "Can't connect: $@\n";
And here's the error message:
Can't connect: Net::FTP: Bad hostname 'Host'
Any ideas? Thanks guys!
Bing™ brings you maps, menus, and reviews organized in one place. Try it