use Net::SFTP; my $sftp=Net::SFTP->new('abcdef.ud.com',user=>'abcde',password=>'12345 +678',debug=>1); print "Logged in..."; sftp->cwd('SUBFOLDER'); print "changed directory..."; sftp->put('file.txt'); print "putting file"; sftp->quit;

Error Message Via Debugger:

#ERROR Message Starts

shappzu2: Login completed, opening dummy shell channel.

shappzu2: channel 0: new client-session

shappzu2: Requesting channel_open for channel 0.

shappzu2: channel 0: open confirm rwindow 100000 rmax 16384

shappzu2: Got channel open confirmation, requesting shell.

shappzu2: Requesting service shell on channel 0.

shappzu2: channel 1: new client-session

shappzu2: Requesting channel_open for channel 1.

shappzu2: sftp: Sending SSH2_FXP_INIT

Use of uninitialized value in numeric gt (>) at /apps/equity/SPIT-3rdParty/perl/5.6.1/site_perl/5.6.1/Net/SSH/Perl/Channel.pm line 82.

Use of uninitialized value in pack at /apps/equity/SPIT-3rdParty/perl/5.6.1/site_perl/5.6.1/Net/SSH/Perl/Buffer.pm line 105.

Connection closed at sftptest.pl line 2

#ERROR Message Ends

I'm using Net::SFTP 0.07 version

Link to SFTP module I was using

http://cpansearch.perl.org/src/DROLSKY/Net-SFTP-0.07/lib/Net/SFTP.pm

Could anyone help me on how to resolve this issue?


In reply to Net::SFTP : use of uninitialized value at pack Buffer.pm line 105 by gsp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.