On Thu Sep 04 14:14:31 2014, LeonT wrote: > Yes, it does not set $! if $fh is a closed filehandle (because it doesn't > do any syscall). This is probably a bug, the attached patch fixes this. I've applied essentially this patch, but with some tests as 8334cae656b5c7fd6ff3536633897332d0ee089a. I didn't notice yours until after I'd written mine. Tony --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=122703