http://qs321.pair.com?node_id=1029358


in reply to Accessing FTP server using Net::FTP with any username and password

It's been a while since I've dealt with Net::FTP but from what I recall, the login method does not raise an exception, you need to do that.

eval { $ftp = Net::FTP->new( $in, Debug => 0 ); $ftp->login( $username, $password ) or die "Cannot login ", $ftp->message; }; if( ! ( $@ ) ) { print ... }
-derby
  • Comment on Re: Accessing FTP server using Net::FTP with any username and password
  • Download Code

Replies are listed 'Best First'.
Re^2: Accessing FTP server using Net::FTP with any username and password
by vin.hephaistion (Initiate) on Apr 23, 2013 at 05:08 UTC

    It worked!!