W dniu 2012-01-12 20:00, Wagner, David --- Sr Programmer Analyst --- CFS pisze:


From: Spectroman [mailto:spectro...@yahoo.com]
Sent: Thursday, January 12, 2012 11:51
To: Wagner, David --- Sr Programmer Analyst --- CFS
Subject: Re: Implementation of sFTP using Perl



Hi David,

Never really used, but seems quite straightforward, as stated in the
synopsis:

  use Net::SFTP;
     my $sftp = Net::SFTP->new($host);
     $sftp->get("foo", "bar");
     $sftp->put("bar", "baz");


Also seemed well documented, doesn't look like you will waste your time
on it ;-)
Net::SFTP seems to be unmaintained for a long time. Once I had to start interacting with sftp sites from Perl, I believe I tried it, as it is searchable with 'SFTP' keyword, but finally I ended with Net::SSH2, somehow (while Net::SFTP seems to be using earlier Net::SSH). SFTP part is packaged within Net::SSH2 distribution as Net::SSH2::SFTP. Works good for me. However, its sftp object does not provide such high-level methods like get() or put(), so to have a convenient sftp client module I had to wrap the sample code from SYNOPSIS in my own module with equivalent methods.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to