On Nov 1, 9:10 am, [EMAIL PROTECTED] (Jay Savage) wrote:
> That's back to the whole void business. In a void context, it should
> return the empty string on success, and undef on failure. In any other
> context, it should return the file contents on success. Clearly, I was
> confused about the cont
From: Jeff Pang <[EMAIL PROTECTED]>
> This discussion let me think a thing that, one of my co-workers, who
> is good at both C and perl programming. When coding with Perl, he
> always like to put a 'return 0' on the end of each subroutines (maybe
> learn the habit from C?). So for
On 10/31/07, Tom Phoenix <[EMAIL PROTECTED]> wrote:
[snip]
> The docs could always be more clear. The right operand of an
> or-operator does inherit the context of the operator itself. But the
> left operand's context is always Boolean.
>
Thanks for clearing that up!
> > Given that, I would expec
st
>Subject: Re: Getting error in Net::SFTP with get function
>
>On 10/31/07, Jay Savage <[EMAIL PROTECTED]> wrote:
>
>> it looks to me like OP is calling $sftp->get() in a void
>> context:
>>
>> $sftp->get( $file, $localFile ) || warn("errr
On 10/31/07, Jay Savage <[EMAIL PROTECTED]> wrote:
> it looks to me like OP is calling $sftp->get() in a void
> context:
>
> $sftp->get( $file, $localFile ) || warn("er0r_--->
> $!".$sftp->status."\n");
It may seem that way, but the left side of the logical or operator
isn't a void co
Jay Savage wrote:
On 10/31/07, Tom Phoenix <[EMAIL PROTECTED]> wrote:
On 10/31/07, Jay Savage <[EMAIL PROTECTED]> 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 o
On 10/31/07, Tom Phoenix <[EMAIL PROTECTED]> wrote:
> On 10/31/07, Jay Savage <[EMAIL PROTECTED]> 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
On Oct 31, 11:15 am, [EMAIL PROTECTED] (Tom Phoenix) wrote:
> On 10/31/07, Jay Savage <[EMAIL PROTECTED]> 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 o
On 10/31/07, Jay Savage <[EMAIL PROTECTED]> 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
On 10/31/07, kilaru rajeev <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have the following code as part of my program;
>
> print "---=> $file, $localFile\n";
> $sftp -> get( $file, $localFile ) || warn("er0r
> _---> $!".$sftp->status."\n");^M
>
> Even though it has do
-Original Message-
>From: kilaru rajeev <[EMAIL PROTECTED]>
>$sftp -> get( $file, $localFile ) || warn("er0r
>_---> $!".$sftp->status."\n");^M
>
>Even though it has downloaded the file properly, it is giving the following
>message:
>
>---=> /trading/tiscrd
Hi All,
I have the following code as part of my program;
print "---=> $file, $localFile\n";
$sftp -> get( $file, $localFile ) || warn("er0r
_---> $!".$sftp->status."\n");^M
Even though it has downloaded the file properly, it is giving the following
message:
---=
12 matches
Mail list logo