note
salva
As part of the [metamod://Net::SFTP::Foreign] distribution you will find the adapter module [metamod://Net::SFTP::Foreign::Compat] which exposes the same API as [metamod://Net::SFTP].
<p>Just add the following line at the beginning of your script:
<c>
use Net::SFTP::Foreign::Compat ':supplant';
</c>
<p>... and all the calls to <c>Net::SFTP</c> would be diverted to <c>Net::SFTP::Foreign</c>.
<p>There may be some edge cases where the behaviors of both modules differ, but not in the most common cases. At least I have not received bug reports for the adapter module for a long time... though, maybe that is because it has fallen out of popularity, who knows!
1232405
1232405