Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FTP problem

0 views
Skip to first unread message

sli...@gmail.com

unread,
Apr 4, 2008, 11:08:47 AM4/4/08
to
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?

smallpond

unread,
Apr 4, 2008, 12:24:25 PM4/4/08
to
On Apr 4, 11:08 am, slin...@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: $@";

$@ is the error.

0 new messages