in reply to Net::SFTP in perl

I've been working on this for awhile, and this is the best that I could come with:

#!/usr/local/bin/perl use strict; use warnings; use Net::SFTP; my $host = '127.0.0.1'; my %args = ( user => 'vetri', password => 'vetri', debug => '1'); my $sftp = Net::SFTP->new( $host, %args ); $sftp->put('/place/to/start/at', '/place/to/put/file-to-put); exit;

I hope this helps:-)

Replies are listed 'Best First'.
Re^2: Net::SFTP in perl
by vetrivel (Sexton) on Jun 13, 2009 at 06:09 UTC
    Could you tell me your perl version .
      I use 5.8.8, shared and threaded.
        Have you tried in 5.6.1 . I think that Net::SFTP is not working in 5.6.1
Re^2: Net::SFTP in perl
by vetrivel (Sexton) on Jun 17, 2009 at 06:35 UTC

    Have you tried your code in perl 5.6.1 version . Please check your code in perl5.6.1

      I installed 5.6.1 in a private directory; however, there where problems. I think that the problem you are having isn't with Net::SFTP but perl5.6.1. Is there anyway you can upgrade, because I really don't think that 5.6.1 will work right.

        Could you tell me what are the problems you have faced .