in reply to Re^2: VB "On Error" Equivalent in Perl
in thread VB "On Error" Equivalent in Perl

That is explained in the documentation for Net::FTP.
If the constructor fails undef will be returned and an error message will be in $@.
All other Net::FTP methods save their error message in $ftp->message.

I've also sometimes wondered about the logic of this. Nevertheless, that's the way it is.

- Miller