in reply to ftp issue in perl

The documentation for Net::FTP shows the following usage of the ->login method:

$ftp->login($user, $password) or die "Cannot login ", $ftp->message;

Maybe you would get more information if you used what the documentation says.

Replies are listed 'Best First'.
Re^2: ftp issue in perl
by namishtiwari (Acolyte) on Jul 27, 2009 at 08:54 UTC
    I tried using that way also as you suggested but with no luck. I dont know why it is throwing the error. Thanks NT

      What was the message printed when you tried calling login like the documentation recommends?

      What did $ftp->message contain after trying to connect?