http://www.perlmonks.org?node_id=1002647


in reply to Math::Pari question

Net::SFTP::Foreign::Compat is compatible with Net::SFTP and far easier to install. It is even available as a debian package.

Then in your scripts, in order to use it, you will have to add the following line at the beginning:

use Net::SFTP::Foreign::Compat ':supplant';

Or another option that does not require changing your code is to create a file named Net/SFTP.pm in some place under your @INC path with the following content:

use Net::SFTP::Foreign::Compat ':supplant'; 1;