On Sat May 26 16:44:40 2012, kryde wrote:
In Net::FTP version 2.77, when doing a put() if there's an error from
read() it seems to be silently treated as normal eof, where I hoped it
would gives some sort of error.

I see the code notices an error from binmode(), or socket write() and
close(), and gives an undef return, but apparently not for read()

The foo.pl below simulates a read error with a tied file handle.
I wonder if the $ftp->put() could return undef in this case.
So far I am unable to confirm the problem because I cannot get 'foo.pl'
to complete on either of two platforms at my disposal.

On Darwin/PPC, the program dies here:

Cannot connect: Net::FTP: connect: Invalid argument at 113390_foo.pl
line 24.

On Linux/i386, the program dies here:

Cannot cwd: /pub: No such file or directory
at 113390_foo.pl line 30.

Can you (or anyone) supply a different example?

Thank you very much.
Jim Keenan

via perlbug: queue: perl5 status: new

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
postedSep 3, '12 at 1:12p
activeSep 3, '12 at 1:12p

1 user in discussion

James E Keenan via RT: 1 post



site design / logo © 2022 Grokbase