in reply to Re: Net::SFTP::Foreign setcwd to relative directory
in thread Net::SFTP::Foreign setcwd to relative directory

I ran the script. autodie => 1 kept showing up as an invalid option,

You are probably using an old version of the module not supporting that feature.

timeout   => 0

Setting the timeout to 0 guarantees a broken SSH connection to the host and then any method call on the object will fail.