in reply to FTP error

What error message do you get if you:

$ftp->login("xxx","yyy") or die "cannot login: ", $ftp->message;

Perl is environmentally friendly - it saves trees

Replies are listed 'Best First'.
Re^2: FTP error
by YGP (Acolyte) on Dec 31, 2007 at 06:19 UTC
    Error i got is
    Net::FTP>>> Net::FTP(2.72) Net::FTP>>> Exporter(5.58) Net::FTP>>> Net::Cmd(2.24) Net::FTP>>> IO::Socket::INET(1.27) Net::FTP>>> IO::Socket(1.28) Net::FTP>>> IO::Handle(1.24) Net::FTP=GLOB(0x1a04110)<<< 220 FTP server (Hummingbird Ltd. (HCLFTPD +) Version 10.0.0.0) ready. Created new FTP Net::FTP=GLOB(0x1a04110)>>> user GGGG Net::FTP=GLOB(0x1a04110)<<< 331 Password required for GGGG. Net::FTP=GLOB(0x1a04110)>>> PASS .... Net::FTP=GLOB(0x1a04110)<<< 530 User GGGG: can't change directory to \ +\DATA\ GGGG $. Cannot login

      So, the same result as you got doing it manually. Not a Perl related problem then. You need to sort out the FTP problem, which looks like an invalid user problem, before you can get the Perl end of things working.


      Perl is environmentally friendly - it saves trees