#! usr/bin/perl BEGIN { unshift (@INC, "/home/eankuls/.cpan/build/Net-SSH-Perl-1.37-AUG9Mn/blib/lib/Net/SSH/Perl"); } use strict; use warnings; use Net::SFTP; use Net::SSH::Perl::Buffer; my $host = "rinacac-test.egi.ericsson.com"; my $userid = "root"; my $pwd = "red32hat"; my $f = Net::SFTP->new($host) or die "couldn't connect"; $f->login($userid, $pwd) or die "couldn't login"; print "successfully logged in\n"; eankuls@L9AHR43:~$ ls -ltr /home/eankuls/.cpan/build/Net-SSH-Perl-1.37-AUG9Mn/blib/lib/Net/SSH/Perl/Buffer.pm -r--r--r-- 1 eankuls egi 9725 Aug 10 2013 /home/eankuls/.cpan/build/Net-SSH-Perl-1.37-AUG9Mn/blib/lib/Net/SSH/Perl/Buffer.pm #### error: Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC contains: /home/eankuls/.cpan/build/Net-SSH-Perl-1.37-AUG9Mn/blib/lib/Net/SSH/Perl /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.14.2/Net/SFTP/Buffer.pm line 6. BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/Net/SFTP/Buffer.pm line 6. Compilation failed in require at /usr/local/share/perl/5.14.2/Net/SFTP/Attributes.pm line 7. BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/Net/SFTP/Attributes.pm line 7. Compilation failed in require at /usr/local/share/perl/5.14.2/Net/SFTP.pm line 8. BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/Net/SFTP.pm line 8. Compilation failed in require at ankur_ftp.pl line 9. BEGIN failed--compilation aborted at ankur_ftp.pl line 9.