in reply to Re^2: transfer a file via SFTP
in thread transfer a file via SFTP

It is a different module with an entirely different back-end. See Net::SFTP::Foreign Vs. Net::SFTP Vs. Net::SSH2::SFTP for a discussion of the differences and similarities.

As a tip to the unwary, this thread was started over a decade ago and therefore some of the details in other posts may be out of date and/or of historical interest only.