[ macperl-Bugs-472735 ] warnings from Net::FTP::I.pm

[email protected]
Newsgroups perl.macperl.porters
Message-ID <[email protected]>
Bugs item #472735, was opened at 2001-10-19 04:43
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=107940&aid=472735&group_id=7940

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Axel Rose (axelrose)
Assigned to: Nobody/Anonymous (nobody)
Summary: warnings from Net::FTP::I.pm

Initial Comment:
sub read {
...
  while(($l = length(${*$data})) < $size) {
   $n += ($b = sysread($data, ${*$data}, $blksize, $l));
   last unless $b;
  }
...

From time to time I get:
   # Use of uninitialized value in addition (+).; Line 29

I set $n to 0 before starting the loop. This didn't resolve the issue.
How come sysread() called in this context returns undef?


Axel


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=107940&aid=472735&group_id=7940
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.