Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Modifying Script From Net::SFTP to Net::SFTP::Foreign

by salva (Abbot)
on Apr 10, 2019 at 21:07 UTC ( #1232423=note: print w/replies, xml ) Need Help??

in reply to Modifying Script From Net::SFTP to Net::SFTP::Foreign

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:

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

... 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!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1232423]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2020-07-12 09:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found