in reply to Re^3: stderr, local block and redirection
in thread stderr, local block and redirection

I think the buffer for read and for sysread must be similarly initialized.
my $read = read($fh, my $buf='', $MAX_READ);