Skip Menu |

This queue is for tickets about the libnet CPAN distribution.

Report information
The Basics
Id: 48001
Status: open
Priority: 0/
Queue: libnet

People
Owner: Nobody in particular
Requestors: nanis [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



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.
Subject: Re: [rt.cpan.org #48001] Net::FTP->new(Host => $arrayref) does not work
Date: Sun, 19 Jul 2009 11:35:14 -0500
To: bug-libnet [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
Show quoted text
> Seems like a mismatch between the code and the docs.
Not sure where that came from in the docs, Net::FTP has never supports an array of hosts