Skip Menu |

This queue is for tickets about the libnet CPAN distribution.

Report information
The Basics
Id: 47829
Status: resolved
Priority: 0/
Queue: libnet

People
Owner: Nobody in particular
Requestors: marcus.lehmann [...] unitedprint.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.22
Fixed in: (no value)



Subject: return value of function put()
The return value of function put() is always undef even if the file has been uploaded correctly to the ftp server. I can see the file and it has exact the same content like the original file. This behavior differs from the cpan dokumentation.
Subject: Re: [rt.cpan.org #47829] return value of function put()
Date: Mon, 13 Jul 2009 07:31:29 -0500
To: bug-libnet [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
Please provide a small script that reproduces the issue, and a transcript of what is output when Debug=>1 is passwd to ->new
The code example is the same like at #47826. Just one thing is diffrent, storing the return value like this: my $test = $ftp->put($sourcePath.$sourceFile,$destinationPath.$destinationFile); warn "HELLO THERE: $test";
Oh well... it works now =). I had to overwrite the Net::FTP modules beacause of major performance problems during upload. After the overwrite, the upload is fast as usual and the return value is there like descriped in the documentation. Thanks for your help.