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 now.
http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1