Perl preserves read errors until a stream is closed
engineeringperlioerror-handlingPerl 5.37.4 stops clearing the stream error flag after readline failures. Explicit close checks can now report errors that previously disappeared, and implicit close can produce new warnings.