in reply to Re^2: Net::FTP
in thread Net::FTP


I am trying to implement this $ftp->login.
But if the login is unsuccessful, I am getting the following error message and program gets terminated.
Uncaught exception from user code: Cannot login Login incorrect.

Is there any way to catch / handle this unsuccessful login, so that the program can continue?