Subject: | Net::FTP->new(Host => $arrayref) does not work |
See http://stackoverflow.com/questions/1148744/ for the discussion.
The docs state
Host - FTP host to connect to. It may be a single scalar, as defined for
the PeerAddr option in IO::Socket::INET, or a reference to an array with
hosts to try in turn. The "host" method will return the value which was
used to connect to the host.
but the constructor does not seem to account for this. Attempting to use
my $ftp = Net::FTP->new( Host => $arrayref )
or die $@;
results in the error message:
Net::FTP: Bad hostname 'ARRAY(0x3ae34)' ...
Seems like a mismatch between the code and the docs.