Hi monks.
I'm trying to catch the FTP timeouts when they happen with something like this.
my @dir_list = eval{$ftp->dir()};
print "Timeout\n" if $@ =~ /Timeout/;
I see timeouts happen but I don't catch it.
I tried to wrap the entire expression in eval, but result is the same
I tried to get something out of $ftp->message() but it's constatly empty.
Can anyone please help me with this? I'm becoming really frustrated.