Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As part of the Net::SFTP::Foreign distribution you will find the adapter module Net::SFTP::Foreign::Compat which exposes the same API as Net::SFTP.
Just add the following line at the beginning of your script:
... and all the calls to Net::SFTP would be diverted to Net::SFTP::Foreign. 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! In reply to Re: Modifying Script From Net::SFTP to Net::SFTP::Foreign
by salva
|
|