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
|
---|
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 |
In Section
Seekers of Perl Wisdom