in reply to Re: (tye)Re: use Fatal;
in thread use Fatal;
That is what *CORE::GLOBAL::open= coderef is for. And if it only makes things fatal when in a void context, then this shouldn't be much of a problem for module code that doesn't know whether the user might use this or not.
You can write code that would break in such cases but I don't consider such code to be reasonable so I don't mind. (:
- tye (but my friends call me "Tye")open( FILE, "< this.txt" ); warn "Can't read this.txt: $!\n" unless defined fileno FILE;
|
---|