use Net::SFTP::Foreign; $Net::SFTP::Foreign::debug = -1; . . $_sftp = Net::SFTP::Foreign->new( .. );