I don't think any current CPAN module offers an interface to this
Looks like Win32API::File already wraps SetErrorMode. (That doesn't mean that drawing attention to the existence/usefulness of SetErrorMode was a waste of time ... ++ for presenting the meditation.)