I’m not a perl programmer but need to debug an error. I’m using the Net:SFTP:Foreign package.
When I attempt to get files, the following call fails:
$sftp->get(source, destination) or do { print “something went wrong.”}
This line returns “something went wrong.” What I would like is to find out WHAT went wrong! How can I extract the reason for failure?
By the way, this script has been working for months without an error. The script is very reliable, I just don’t know how to capture the reason for failure.
1 Answer