FTP problem

Hello,

in the past I used Net::FTP for ftp and had no problems, however if I
try to connect to a ftp url like
ftp://ftp.gimp.org/ I can't connect?

$ftp = Net::FTP->new($url, Debug=>1 [, Passive=>1]) or die 'cannot
conect';

Any ideas what the problem is?
slinges [ Fr, 04 April 2008 17:08 ] [ ID #1935828 ]

Re: FTP problem

On Apr 4, 11:08 am, slin... [at] gmail.com wrote:
> Hello,
>
> in the past I used Net::FTP for ftp and had no problems, however if I
> try to connect to a ftp url likeftp://ftp.gimp.org/I can't connect?
>
> $ftp = Net::FTP->new($url, Debug=>1 [, Passive=>1]) or die 'cannot
> conect';
>
> Any ideas what the problem is?

try doing it like the doc:
or die "Cannot connect to $url: $ [at] ";

$ [at] is the error.
smallpond [ Fr, 04 April 2008 18:24 ] [ ID #1935835 ]
Perl » comp.lang.perl.misc » FTP problem

Vorheriges Thema: FAQ 8.19 Why doesn't my sockets program work under System V (Solaris)? What does the error message
Nächstes Thema: frustrated in installing modules