Re: Getting error in Net::SFTP with get function



On Oct 31, 11:15 am, t...@xxxxxxxxxxxxxx (Tom Phoenix) wrote:
On 10/31/07, Jay Savage <daggerqu...@xxxxxxxxx> wrote:

Take another look at the Net::SFTP docs, particularly the note about
what get() does when called in a void context.

I see a note about a non-void context, but I don't see one about a
void context. The OP didn't use the get() method in a void context.
Did you mean to write "non-void"?

http://search.cpan.org/~dbrobins/Net-SFTP-0.10/lib/Net/SFTP.pm

As I interpret the docs, the OP's code should be correct. But maybe
I'm missing something.

It's correct unless the file the OP is retrieving happens to be empty
(or contains nothing but '0').

Paul Lalli

.



Relevant Pages

  • Re: Getting error in Net::SFTP with get function
    ... what getdoes when called in a void context. ... I see a note about a non-void context, but I don't see one about a ... the lefthand operand. ... Or maybe *I'm* missing something? ...
    (perl.beginners)
  • Re: Getting error in Net::SFTP with get function
    ... what getdoes when called in a void context. ... I see a note about a non-void context, but I don't see one about a ... --Tom Phoenix ... Stonehenge Perl Training ...
    (perl.beginners)
  • Re: Totally stuck
    ... On Thu, 1 Jul 2004, Paul Lalli wrote: ... > The print in the original code is printing the value of $_, ... next is a comma-separated list being evaluated in void context. ... the comma operator evaluates each of its operands from left to ...
    (comp.lang.perl.misc)
  • Re: I want to scanf, dammit!
    ... On Thu, 25 Mar 2004, Uri Guttman wrote: ... > for provides void context so it will read one record at a time as ... of the for loop, it reads a line and throws it away. ... Paul Lalli ...
    (comp.lang.perl.misc)