$len = sysread($fh, $buf, $fh->pending(), length($buf));