in reply to Issues with Net::SCP::Expect

Net::SCP::Expect was last released 10 years ago and has several open issues. Since you seem to be running on a *NIX system and running an external ssh doesn't seem to be an issue, I'd strongly suggest you try Net::OpenSSH instead (see its scp_get and scp_put methods).

Replies are listed 'Best First'.
Re^2: Issues with Net::SCP::Expect
by Merchlewitz (Novice) on Dec 06, 2019 at 14:48 UTC

    Thanks haukex, I ended up implementing Net::OpenSSH and used the scp_put.