in reply to Net::Ftp->login problem

I'm going to reiterate the comment someone else made: enable the debug mode. It can be very helpful with figuring out what is wrong. To enable debug mode, simply use the following line:

$ftp=Net::FTP->new("$host",Timeout=>240,Debug=>1) or die "connect\n";
Also, I would recommend looking at the logs from the server you are attempting to connect to. If you do not have access to these logs, kindly ask your friendly neighborhood sysadmin to help you out.

Replies are listed 'Best First'.
Re^2: Net::Ftp->login problem
by KianTern (Acolyte) on Oct 31, 2007 at 12:12 UTC
    Thank you all but I guess problem was not from my side now everything (almost) works as it should