As you have seen in some of the previous posts, $@ is where the Net::FTP exit status is placed. This is the syntax I use:
my $ftp = Net::FTP->new
(
"someserver.com",
Timeout => 60
) or die "Could not connect to someserver: $@\n";
$ftp->login($username, $password) or die "Could not log...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.